TomT2847
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Add video uploaded via CRED to post
Started by: TomT2847
in: Toolset Professional Support
Problem: I want to do is use one of the CRED API hooks after the form is submitted to add a meta value to the corresponding post. Solution: Yes, you are right, you can use CRED action hook "cred_save_data" to update/add custom field to the post, see the document you mentioned above: https://toolset.com/documentation/programmer-reference/cred-api/#csd But, it needs custom codes, for example, when user submit the CRED form, the post is saved into database, you can use hook "cred_save_data" to trigger a custom PHP function, in this function, you need to: 1) get the value of "URL of the video uploaded", if it is a custom field created with Types plugin, you can use Types function types_render_field() to get the field value: https://toolset.com/documentation/customizing-sites-using-php/functions/ Or you can use WordPress function get_post_meta() to get the value: 2) use above value to update/add it to the "meta value", for example Relevant Documentation: https://toolset.com/documentation/programmer-reference/cred-api/#csd |
2 | 7 | 6 years, 7 months ago | ||
CRED Validation not working (requiring First and Last Name)
1
2
Started by: TomT2847 in: Toolset Professional Support |
2 | 21 | 6 years, 8 months ago | ||
Validation error messages displaying redundant information
Started by: TomT2847 in: Toolset Professional Support |
3 | 8 | 6 years, 12 months ago |