Thanks a ton Josh. That code was very helpful. We adjusted it slightly to work only with The Events Calendar. Here is the code in case anyone else needs it:
<?php
/**
* Disable the Yoast SEO admin list columns when looking at The Events Calendar events.
*/
function wi_disable_yoast_seo_columns_on_event_list() {
if ( !is_admin() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) || !isset( $_REQUEST['post_type'] ) ) {
return false;
}
global $pagenow;
$post_type = esc_attr( $_REQUEST['post_type'] );
// Remove the Yoast SEO columns only if we're on the admin event list view
if ( $pagenow === 'edit.php' && $post_type === 'tribe_events' ) {
add_filter( 'wpseo_use_page_analysis', '__return_false' );
}
}
add_action( 'init', 'wi_disable_yoast_seo_columns_on_event_list' );
Take care.
Jonathan