joannaH
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 |
---|---|---|---|---|---|
toolset conflict withThe event calendar plugin forms not updating/ creating post
Started by: joannaH in: Toolset Professional Support |
2 | 8 | 3 years ago | ||
Trying to have taxonomy, featured image and rich text editor required on fronten
Started by: joannaH in: Toolset Professional Support |
2 | 4 | 3 years, 1 month ago | ||
How to force to show all custom field values in custom search in directory
Started by: joannaH in: Toolset Professional Support |
2 | 2 | 3 years, 1 month ago | ||
I need for directory full width text search below it side by side seach checkbox
Started by: joannaH in: Toolset Professional Support |
2 | 4 | 3 years, 1 month ago | ||
Updating user role when submitting a form
Started by: joannaH
in: Toolset Professional Support
Problem: Solution: This can be done by using the following hook. add_action('cred_save_data', 'change_user_role_on_save',10,2); function change_user_role_on_save($post_id, $form_data) { // if a specific form if ($form_data['id']==573) { $user = wp_get_current_user(); if ( in_array( 'subscriber', (array) $user->roles ) ) { // Remove role $user->remove_role( 'subscriber' ); // Add role $user->set_role('editor'); } } } What you need to do is replace 'subscriber' with the user's current role and then 'editor' with the role that you want the user to gain. Finally just change the 573 to the ID of the post form. This code can be added to the Toolset custom code snippets at Toolset -> Settings -> Custom Code. Once it has been added please ensure that you've activated it. |
3 | 10 | 3 years, 6 months ago | ||
Looking to draw out a list of users that have a published directory
Started by: joannaH
in: Toolset Professional Support
Problem: Solution: You can find the proposed solution in this case with the following reply: Relevant Documentation: |
2 | 7 | 3 years, 6 months ago | ||
Custom Post Owner
Started by: joannaH in: Toolset Professional Support |
2 | 4 | 3 years, 9 months ago |