• I am manually adding the share buttons via template file.

    I am doing some custom things with reusable blocks, and your plugin is hooking into the_content() filter on the wp_block post type causing it to show in my block. I have all display options unchecked in the settings. It looks like you’re showing on all by default, and then individually disabling based on the checkboxes, but that’s not catching the wp_block post type unfortunately.

    Could you add a control for this or fix another way?
    Is there any way I can fix this from my end?

    Using WP v5.6, AddtoAny v1.7.42

    Update: I’ve temporarily disabled them by disabling the offending filter ‘A2A_SHARE_SAVE_add_to_content’, but this is not a great solution overall.

    Pasting below in case anyone else needs it.

    function cb_disable_addtoany_auto_display(){
    	remove_filter( 'the_content', 'A2A_SHARE_SAVE_add_to_content', 98 );
    }
    
    add_action( 'pre_get_posts', 'cb_disable_addtoany_auto_display', 11 );
    • This topic was modified 3 years, 10 months ago by jamieschmid.
  • The topic ‘Disable sharing on wp_block post type’ is closed to new replies.