Skip Navigation

[Resolved] Allow shortcodes in CRED notifications

This support ticket is created 6 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 1.47 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 6 years, 5 months ago.

Assisted by: Minesh.

Author
Posts
#581358

Please enable using shortcodes with CRED notifications. It's something a lot of people have been asking for for years now but it hasn't happened. If nothing else at least being able to use it with the From Email would be super nice especially with contact forms or reply forms.

#581448

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Please enable using shortcodes with CRED notifications. It's something a lot of people have been asking for for years now but it hasn't happened.
==> Well - which shortcodes you would like to use in CRED notifications - you can use Types shortcodes with CRED notification as given under:

Name: [types field="contact-name" id="%%POST_ID%%"][/types]

If nothing else at least being able to use it with the From Email would be super nice especially with contact forms or reply forms.
==> Well - We already offer CRED hook "cred_mail_header" to setup mail headers:

For example:

//Customise CRED notifications
function customise_cred_notifications( $headers, $formid, $postid, $notification_name, $notification_number ) {
    if ($formid==5 && $notification_number==0) {
        $myheaders = array( 'Reply-To: noreply@test.it' );
        return array_merge($headers, $myheaders);
    }
    return $headers;
}
add_filter('cred_mail_header', 'customise_cred_notifications', 10, 5);

More info:
=> https://toolset.com/documentation/programmer-reference/cred-api/#cred_mail_header

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.