php - Hide Simple Social Buttons plugin output in custom post type -


i'm working in custom post type , need hide output generated simple social buttons plugin. tried code: remove_filter('the_content', 'plugin_action_links', 100); in single-magazine_post_type.php below get_header() didn't work. advice?

ps: exists plugin can work on without need touch code time?

there function in simple social plugin called insert_buttons in simple-social-buttons/simple-social-buttons.php. function puts social buttons content. can make exception there like;

function insert_buttons($content) {     global $post;     if ( !empty( $post ) ) {         if ( get_post_type( $post ) == "your_post_type") {             return $content;            }     }    ...... } 

edit: how that?

1) open plugin editor in admin panel

enter image description here

2) select simple social buttons list

enter image description here

3) select buttons/simple-social-buttons.php list

enter image description here

4) update insert_buttons function mentioned above

enter image description here


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -