Here is the solution :
You need to hook an action to remove ssba button. Wp action runs pretty early and allow you to remove the ssba filter on the content which add the buttons list.
function remove_share_buttons_custom_post() {
if (in_array(get_post_type(),array('sar'))) {
remove_filter( 'the_content', 'show_share_buttons');
}
}
add_action('wp', 'remove_share_buttons_custom_post');
Related Posts:
- Media library – Limit images to custom post type
- post_type_link filter causes 404 on the CPT page it’s used on
- Used with meta_query in query_posts works slowly
- WooCommerce product search titles only
- Insert custom taxonomy into category query
- Enable shortcodes on custom post type
- add_filter > posts_where works partially
- Row actions for custom post types?
- remove custom post type permalink
- How to order posts of a custom post type by date DESC in dashboard Admin?
- Change capability type of post type registered by plugin
- How can I get next/ previous post links to order by a filter (by the last word of the title)?
- Most efficient way to search for values from CPT in Post content
- Include images from pages in wp search.php results in default wp search
- Separating Search Results By Post Type
- Ajax filter with custom taxonomies
- List events by month
- Date query for a custom meta field
- Image size filtering in Media uploader according to custom post type
- How to remove CPT comment feed from head?
- Change plugin’s has_archive = true to false?
- Hooking into wp_export filter for custom post type [closed]
- Change upload_dir folder at a certain cpt but cant change back
- Archive filter disappears on no results?
- Best practice for adding posts in bulk
- Remove “Get Shortlink” button in admin of custom post type
- How to get Custom Post ID by adding filter to child theme’s function
- Filter custom post type archive page with custom taxonomies (categories) with AJAX
- How to have the right design for a custom post type without accessing themes
- How to filter out post type meta?
- How to check if “is single” page
- How to add the post ID (or any other post data) to a Contact Form 7 mail?
- Make a function to run only for CPTs
- how to add extra meta box or textarea into custom post types
- How to quickly reorder posts in the admin panel that will persist for the wp-api
- How to detect filter in URL in Category page?
- How to retain $_POST data when submitting form to custom page
- Why get_posts() not returning only selected category posts from Custom Post Type?
- How can I run this code once so that my generated post title doesn’t keep changing on publish/update?
- Custom Post Type + Categories
- search suggest – filter post type
- Filtering posts list table
- Make a custom_post translatable
- Adding custom image sizes and post types to a plugin or to a theme?
- How does the filter post_updated_messages work?
- How to order posts of a custom post type by date DESC in dashboard Admin?
- Is there any way to get list of all possible filter hooks for all post types?
- Can I display custom post types in home.php or need page template?
- Show all tags on custom post type
- How to hook WP initialization without modifying functions.php
- wp_insert_post wrong post type [closed]
- ACF in wordpress
- Pods CMS: How to add custom column to Adnvanced Content Type
- REST filters only firing when I have a param set
- Custom post type’s posts are not showing anywere but in xml sitemap
- Unable to format dates to put in event calendar
- Filter content in shortcode
- How do I show a link or ‘Read More’ button on a custom field excerpt when it is less than the word limit
- How to filter url on post submission?
- Custom post type in Custom widget – $listItem
- Custom Plugin – Query CPT – Display Results
- Modify a plugin function output from another plugin
- Custom post type archive – error in nav-menu-template.php
- Custom Taxonomy Filter Issues
- Filter search posts by post meta?
- Modifying search results based on post_type
- Store a value in global scope after init hook is fired
- Dynamic page for nav items used as filters
- Custom Post Type Front Page Gives 404
- Output all terms slugs for a loop filter
- Custom Post Type single post type shown in theme single.php
- Default custom post type url
- Run query on specific admin options page and send results to select field in another function
- Apply pre_get_posts to specific custom post type in the admin area
- Populate metabox dropdown with post title from another Custom Post Type (issues with wp_reset / global $post)
- Filter between Custom Posts depending on meta_value
- Best Plugins for Complex Index of Resources [closed]
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- Display subcategories in the filter on CPT
- Understanding the workflow of form creation plugin
- Creating adminable dynamic filtering on custom post type
- Use Custom Post Type as Storage Container Without Registering It
- next/prev post link by relationship post 2 post
- Filter wp_dropdown_categories Per Post Type
- add current-menu-item to multiple custom post types
- making a glossary with wordpress
- Add Excerpt On Quicksand Plugin
- Author profile comments system
- Custom Post Types in plugins?
- Plugins for putting Custom Post Types into the Menu
- Plugin – read post into blank page [duplicate]
- How to hide home title on pages and posts?
- WP_Query is getting the post but the_post() not rendering any Post
- make playlist from a custom post type
- Custom Post Type to Plugin
- Woocommerce product page is not showing custom css [closed]
- Can WordPress show posts based on a button that the user clicked 2 pages back?
- Filter page ID outside the loop and order
- Paginate yearly archives for a custom post type
- coloring row’s background based on custom field value