Support » Plugin: Featured Image Column » Remove thumbs from PAGES

  • Resolved Chris Borgman

    (@chrisborgman)


    OK, so I see the code but not knowing a the first thing about php I don’t know what to change to get this to remove the thumbnail column from PAGES. Could you please entire the exact code I need?

    I was not able to make the correct changes to this code:

    function frosty_featured_image_column_init_func() {
        add_filter( 'featured_image_column_post_types', 'frosty_featured_image_column_remove_post_types', 11 ); // Remove
    }
    add_action( 'featured_image_column_init', 'frosty_featured_image_column_init_func' );
    
    function frosty_featured_image_column_remove_post_types( $post_types ) {
        foreach( $post_types as $key => $post_type ) {
            if ( 'post-type' === $post_type ) // Post type you'd like removed. Ex: 'post' or 'page'
                unset( $post_types[$key] );
        }
        return $post_types;
    }

    https://wordpress.org/plugins/featured-image-column/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove thumbs from PAGES’ is closed to new replies.