thomasD-2
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 |
---|---|---|---|---|---|
Recaptcha is missing in Firefox browser
Started by: thomasD-2 in: Toolset Professional Support |
2 | 3 | 3 years, 5 months ago | ||
Plugin Update not possible
Started by: thomasD-2 in: Toolset Professional Support |
2 | 2 | 5 years, 10 months ago | ||
POST_PARENT_TITLE doesn’t work after migration to Types3 and new relationships
Started by: thomasD-2
in: Toolset Professional Support
Problem: Solution: You can find proposed solution, in this case, with the following reply: Relevant Documentation: |
2 | 12 | 6 years, 6 months ago | ||
Form notification to email from parent post field no longer working after Types 3.0 update
Started by: thomasD-2
in: Toolset Professional Support
Problem: I have a Form that triggers an email notification. I send the notification to an email address that is stored in a parent post's custom field, by using the CRED API cred_notification_recipients. Since updating to Types 3.0, the email notifications are not sent as expected. Solution: Update the code to work with the new Post Relationships API, and ensure the child post status is not "private". add_filter('cred_notification_recipients', 'modify_recipients', 10, 4); function modify_recipients($recipients, $notification, $form_id, $post_id) { // Check notification name matches target notification if ( isset($notification['name']) && 'Mail an Veranstalter' == $notification['name'] ) { // Add email recipient $parent_id = toolset_get_parent_post_by_type( $post_id, 'veranstaltung' ); $email_of_organizer = get_post_meta($parent_id, 'wpcf-veranstalter-email', true); $recipients[] = array( 'to' => 'cc', 'address' => '$email_of_organizer', 'name' => '', 'lastname' => '' ); } return $recipients; } Relevant Documentation: |
2 | 5 | 6 years, 7 months ago |