markR-11
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 |
---|---|---|---|---|---|
Framework Installer enabled causes website to load (or be very slow)
Started by: markR-11 in: Toolset Professional Support |
2 | 5 | 2 years, 11 months ago | ||
Administrator only pages still viewable by guests
1
2
Started by: markR-11 in: Toolset Professional Support |
2 | 27 | 5 years, 5 months ago | ||
Views Search – show no results until search option entered, and add pagination
1
2
3
Started by: markR-11 in: Toolset Professional Support |
3 | 31 | 5 years, 8 months ago | ||
Split: Ability to control CRED Form Notifications based on Generic Field
Started by: markR-11 in: Toolset Professional Support |
2 | 6 | 5 years, 11 months ago | ||
How to conditionally send form notifications
Started by: markR-11
in: Toolset Professional Support
Problem: Solution: Specifically, two hooks are used, cred_notification_event_type and cred_custom_notification_event_type_condition. The first registers a custom type of event (distinct from the standard event types such as on submit), and the second performs some logic for the custom event and returns true or false depending on whether the notification should be sent or not. Here is some boilerplate code that needs expanding to include such logic: function tssupp_custom_notification($notification_type, $notification, $form_id, $post_id) { if ( // Target the form and its notification $form_id == 39 && $notification['name'] == 'Thing published' ) { // Define a custom notification type $notification_type = 'maybe_notify'; } return $notification_type; } add_filter('cred_notification_event_type', 'tssupp_custom_notification', 99, 4); function tssupp_custom_notification_condition($condition_status, $notification, $form_id, $post_id) { if ( // Target the form and notification and the notification type $form_id == 39 && $notification['name'] == 'Thing published' && $notification['event']['type'] == 'maybe_notify' ) { // Perform whatever tests you want and return true (send notification) or false (don't) $condition_status = true; } return $condition_status; } add_filter('cred_custom_notification_event_type_condition', 'tssupp_custom_notification_condition', 99, 4); Relevant Documentation: |
3 | 13 | 5 years, 11 months ago | ||
Split: Using checkboxes when not a Types field
Started by: markR-11 in: Toolset Professional Support |
2 | 6 | 6 years ago | ||
Manipulate CPT Custom Taxonomies on form submit
Started by: markR-11 in: Toolset Professional Support |
2 | 15 | 6 years ago | ||
Hide Password from email notification in %FORM_DATA% with User Edit Form
Started by: markR-11 in: Toolset Professional Support |
2 | 6 | 6 years ago | ||
Optional Change Password Conditional Not Working as Expected
Started by: markR-11 in: Toolset Professional Support |
2 | 8 | 6 years ago | ||
User Edit Form showed details for another user
Started by: markR-11 in: Toolset Professional Support |
2 | 8 | 6 years ago | ||
Use my Location not working
Started by: markR-11 in: Toolset Professional Support |
2 | 7 | 6 years ago | ||
Posts with multiple addresses, show closest address/location from View search
Started by: markR-11 in: Toolset Professional Support |
2 | 7 | 6 years ago | ||
Views Loop CPT Edit – Form type and post type do not match
Started by: markR-11 in: Toolset Professional Support |
2 | 3 | 6 years ago | ||
Limit custom post access to author only
Started by: markR-11 in: Toolset Professional Support |
2 | 10 | 6 years ago | ||
The Membership Tutorial is missing the My Account Page Tutorial/Docs
Started by: markR-11 in: Toolset Professional Support |
2 | 2 | 6 years, 1 month ago |