Support » Plugin: AddToAny Share Buttons » Buttons displaying regardless

  • Resolved amindfulway



    We’ve configured the plugin so that none of the placement options are enabled & use the shortcode. Despite this, the buttons are displaying on a custom post type.

    How do we prevent this?

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author micropat


    If the post type is public, it shows up as an option in AddToAny Placement settings.

    If you’re stuck with a non-public post type, see “How can I programmatically remove the button(s)?” in the plugin’s FAQ. Example:

    function addtoany_disable_sharing_on_my_custom_post_type() {
        if ( 'my_custom_post_type' == get_post_type() ) {
            return true;
    add_filter( 'addtoany_sharing_disabled', 'addtoany_disable_sharing_on_my_custom_post_type' );

    Thanks. That did the trick.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Buttons displaying regardless’ is closed to new replies.