williamM-3
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 |
---|---|---|---|---|---|
Update Post date when User submits a CRED Post form
Started by: williamM-3
in: Toolset Professional Support
Problem: I would like to modify the post date when a Form is submitted. Solution: Use the wp_update_post API to modify the post date of an existing post. add_action('cred_save_data', 'my_save_data_action',10,2); function my_save_data_action($post_id, $form_data) { // if a specific form if ($form_data['id']==215) { $time = current_time('mysql'); $args = array( 'ID' => $post_id, 'post_author' => get_current_user_id(), 'post_date' => $time, 'post_date_gmt' => get_gmt_from_date($time), ); $res = wp_update_post( $args, true ); } } Relevant Documentation: |
3 | 6 | 6 years, 3 months ago | ||
Access Plugin not restricting guest access to specific CPT Archive
Started by: williamM-3
in: Toolset Professional Support
Problem: Solution: Relevant Documentation: |
2 | 5 | 7 years, 3 months ago | ||
User post cred does not show keep radio option selected in wpadmin
1
2
Started by: williamM-3
in: Toolset Professional Support
Problem: How to solve this? Solution: And select the 2nd option there “Show one of these values” to display the images. Screenshot here: |
2 | 18 | 7 years, 4 months ago |