¡Important!, eCommerce, Yoast | Type: PHPRemove Yoast Columns to Allow WooCommerce Columns

Yoast SEO knocks all the products admin pages out due to the way it adds a load of columns to the admin pages and posts lists. Urrghh …

Add snippet to theme functions file:

function pands_remove_cpt_columns( $columns ) {
unset($columns['wpseo-score']);
unset($columns['wpseo-title']);
unset($columns['wpseo-metadesc']);
unset($columns['wpseo-focuskw']);
return $columns;
}
add_filter( 'manage_edit-product_columns', 'pands_remove_cpt_columns', 10, 1 );

The key line here is: manage_edit-product_columns – where ‘product’ is the name of the CPT.

We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.
Accept