CRED plugin provides an API, making it easy to customize your post or user forms. The API includes hooks (actions and filters) to accomplish specific tasks using PHP code.
When you ask for help or report issues, make sure to tell us all related information about your form and what you want to achieve.
Viewing 14 topics - 331 through 344 (of 344 total)
Problem:
Hide populated fields when editing a form
Solution:
Edit post form is intended to show the content of the post which you currently edit.
If you remove the field values, then the original field values where even you will not make any change will not be get saved.
we do not advise to mimic with the original edit form behaviour as if we make any changes to it sooner or later there is a chance that it can be broken.
Problem:
The user would like to run custom code when a post is deleted. He tried the cred_redirect_after_delete_action action but it does not help him.
Solution:
Because we need to do some logic that depends on the post data, which is already deleted at this stage, we need to use another action/filter.
We suggest using a Post Edit form that will change the status of the post to "Trash" and rely on the cred_save_post hook.