Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Adds support for use of shortcodes in notifications.
/**
* Render Shortcodes in Notifications
* @version 1.0
*/
function mycred_pro_render_shortcodes_in_notice( $notice ) {
return do_shortcode( $notice );
}
add_filter( 'mycred_notifications_note', 'mycred_pro_render_shortcodes_in_notice' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment