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
2) select simple social buttons
list
3) select buttons/simple-social-buttons.php
list
4) update insert_buttons
function mentioned above
Comments
Post a Comment