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 12 topics - 496 through 507 (of 507 total)
Problem:
How to add custom fields added using the Generic field in a Notification email (linked to User Form)?
Solution:
You can use the Toolset form's API hook "cred_body_notification_codes" in order to add the custom fields to the email notification body on fly.
Problem: I have a one-to-many post relationship set up in Types. When I create a child post in wp-admin, I would like to automatically set the child post title based on the parent post's title, using save_post.
Solution: Use the post relationships API toolset_get_related_post to retrieve the parent post ID during the save_post hook when saving a child post. Then use WordPress API wp_update_post to set the child post title automatically.