Created
January 1, 2018 14:53
-
-
Save gabrielmerovingi/99449593ce51dcec313b1fbedb6b7ac4 to your computer and use it in GitHub Desktop.
Adds support for use of shortcodes in notifications.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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