Skip to content

Instantly share code, notes, and snippets.

View alexlii1971's full-sized avatar

Alexlee alexlii1971

  • Beijing
View GitHub Profile
@gabrielmerovingi
gabrielmerovingi / mycred-notifications-note-filter-example
Created January 1, 2018 14:53
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' );