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
- GravityForm: Populate Dropdown with custom post type [closed]
- Make a function to run only for CPTs
- Modifying date filter on admin page for custom post type to link to custom field
- how to add extra meta box or textarea into custom post types
- Add html to cpt main page / admin edit.php
- register_taxonomy and register_post_type does not work [closed]
- Pre_get_posts filter overwrites all search functionality
- “add_post_type_support” with Custom Post Type & ACF
- Shortcode insertion in tab
- Filter categories of posts with checkboxes
- Can’t get order_by meta_value_num to work properly
- How to quickly reorder posts in the admin panel that will persist for the wp-api
- Add CPT as subpage under custom page
- check if post title in a custom post type exists in page
- How to detect filter in URL in Category page?
- How to hack YARPP plugin to find related posts for custom post type?
- Custom query to filter posts that have current post as a taxonomy [closed]
- Why is conditionally loading a custom plugin’s code only on a specific custom post type causing the site content to disappear?
- Show listings from Impress Listing plugin in random order using taxonomy and terms
- Setting proper query for multiple custom admin filters
- How to query custom post types posts filtered by multiple custom taxonomies through a form selection
- Update menu when saving settings
- One-to-many post relationships that are displayed by category (using posts-to-posts plugin)
- custom post type not showing in menu
- Custom posts don’t work
- Append date to custom post type url slug
- How to retain $_POST data when submitting form to custom page
- Why get_posts() not returning only selected category posts from Custom Post Type?
- single-{cpt}.php ignored
- If post has custom field then display css-class
- Genesis filterable portfolio isotope [closed]
- Adding a custom post type taxonomy template in plugin
- Replace text in post from cvs
- Insert and then update post_type by wp_update_post
- How can I see a list of my Custom Post Types of the last term I was in?
- Custom Post Types. Are there any disadvantages/advantages in using a plugin to develop them?
- add category name to permalinks on product page /category-name/product-name
- Filtering WP_Query
- How can I make a custom post type sticky?
- Displaying custom taxonomy in the admin list of a custom post type
- How can I run this code once so that my generated post title doesn’t keep changing on publish/update?
- filter custom post type by meta key in dashboard
- Categories of custom taxonomy don’t show any posts
- How to add a post slug to a url?
- WordPress sort search results by custom order
- How to filter wp_list_categories output with some custom post type meta query?
- How to Filter custom post type by taxonomy?
- Filter term taxonomy metabox in custom post type
- creat filter with wp_query
- A method for ordering mixed dates in search result loop (theory only, no actual code)
- Action or Filter Hook for a Custom Importer
- How to set a CPT to have a page as a parent, then rewrite urls accordingly?
- Broken featured images are uploading from frontend
- Addition of custom option panel crashes Media Library & Admin Area
- How can I made custom taxonomies relationship?
- WooCommerce sort products by the actual product width(not the shipping width)
- limit value taxonomy based on previous taxonomy value wordpress
- Dynamic dropdown select values depending on other custom field value
- How to change the post type a theme shows by default?
- Tracking changes in admin-page so user gets warning when leaving the page
- filter custom post in rest api with custom function
- How to change wp prefix for custom post type only?
- Send notifications to custom post author when custom post is edited
- Metabox not show in categories custom post type cmb2
- Filter hierarchical custom post type admin page by parent, and include children & grandchildren
- Sort and filter custom post type posts by custom taxonomy
- Versioned Custom Post Type (Not the same as revisions)
- Post injections into Site Origins Page builder [closed]
- Custom Post Type + Categories
- WordPress randomly shows 404 errors
- Custom Post Type slug same as page name
- Loop filtering Custom Post Types and/or Categories
- search suggest – filter post type
- How to Get WordPress custom post data in WooCommerce product meta panel? [closed]
- the_content filter on some post types only not working
- Shortcode for CPT post content in a page
- custom post type and non-standard gallery
- Filtering posts list table
- Make a custom_post translatable
- How to change permalink to include custom post type
- Custom filter function not working with Custom post type
- How to Add multiple instance of meta box to custom post type
- How can you use one database with multisite
- Filter Posts from the Main Query
- Categories filtering in new post
- How to use manage_$post_type_posts_columns with underscore in post type?
- Adding custom image sizes and post types to a plugin or to a theme?
- How does the filter post_updated_messages work?
- Search filter triggered & sort by custom post type
- How to order posts of a custom post type by date DESC in dashboard Admin?
- Custom fields for custom post type
- Redirect to another page using contact form 7? [closed]
- Custom Post Archive is not working