Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Disable myCRED Shortcodes
- * @version 1.0
- */
- add_action( 'mycred_init', 'mycredpro_disable_mycred_shortcodes', 999 );
- function mycredpro_replace_link_click_shortcode() {
- if ( current_user_can( 'manage_options' ) ) return;
- remove_shortcode( 'mycred_link' );
- remove_shortcode( 'mycred_give' );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement