Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Johan van der Wijk

    (@vanderwijk)

    Hi fizzlederp,

    This is the code block that adds the icon:

    // Only add content_block icon above posts and pages
    function check_post_type_and_remove_media_buttons() {
    	global $current_screen;
    	if( 'content_block' != $current_screen->post_type ) add_filter('media_buttons_context', 'add_content_block_icon' );
    }
    add_action('admin_head','check_post_type_and_remove_media_buttons');

    You could try to override this in your theme’s function.php file or simply delete the above code from the plugin code. As any changes to the plugin code will be undone when updating the plugin, using the functions.php file is preferable.

    Thread Starter fizzlederp

    (@fizzlederp)

    Thanks. That’ll do for me!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Custom Post Widget] Remove "Insert Content Block" button from page editor?’ is closed to new replies.