Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gabrielmerovingi/99449593ce51dcec313b1fbedb6b7ac4 to your computer and use it in GitHub Desktop.
Save gabrielmerovingi/99449593ce51dcec313b1fbedb6b7ac4 to your computer and use it in GitHub Desktop.
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