Support » Plugin: The SEO Framework » Remove SEO admin columns

  • Resolved Alex Mangini


    Hi, I am trying to save space in my Admin Columns list and would like to remove the SEO column.

    I tried pasting filter from this thread into my child theme’s functions.php with no success. I also tried to unset the SEO column with the manage_posts_columns feature, but with no success either.

    Here is the code I am working with. Any suggestions?

     * Filter out admin columns.
     * @since 1.0
    function md_admin_columns( $columns ) {
    	unset( $columns['tags'] );
    	unset( $columns['SEO'] );
    	return $columns;
    function md_admin_columns_init() {
    	add_filter( 'manage_posts_columns' , 'md_admin_columns' );
    	add_filter( 'the_seo_framework_show_seo_column', '__return_false' );
    add_action( 'admin_init' , 'md_admin_columns_init' );
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sybre Waaijer


    Hi Alex,

    My apologies for the belated reply! I had power issues yesterday.

    There’s no need for filters! TSF has a few easily accessible methods to get rid of the SEO column:

    1. To disable it globally, go to “SEO Settings > General > Layout > SEO Bar Settings”, and uncheck “Display the SEO Bar in overview tables?”
    2. To disable it per-account and per-list-view basis, go to any post list overview, and at the top right, you’ll find “Screen Options”. Click that, and uncheck “SEO”.

    If you still want to go about it via code, note that filter the_seo_framework_show_seo_column has been removed in version 4.0. Since then, I recommend using this method instead:

    add_action( 'the_seo_framework_after_admin_init', function() {
    	remove_action( 'admin_init', [ the_seo_framework(), '_init_seo_bar_tables' ] );
    } );

    You can’t run that inside the md_admin_columns_init function since the action must be removed before the hook admin_init invokes.

    I hope this helps! Cheers 🙂

    Thread Starter Alex Mangini


    Great! I am so used to writing filters to solve admin columns I didn’t think to look for that handy option. I am a big fan of you plugin, thanks for the extra explanation!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove SEO admin columns’ is closed to new replies.