Forked from gabrielmerovingi/mycred-notifications-note-filter-example
Created
February 19, 2019 12:38
-
-
Save tharlab/2e49ed8ce883bc1d1b306847d5d1e1b8 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