Disable SEO News Dashboard Widget
add_filter( ‘aioseo_show_seo_news’, ‘aioseo_disable_dashboard_widget’ ); function aioseo_disable_dashboard_widget( $enabled ) { return false; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘aioseo_show_seo_news’, ‘aioseo_disable_dashboard_widget’ ); function aioseo_disable_dashboard_widget( $enabled ) { return false; }Continue reading
add_filter( ‘aioseo_show_in_admin_bar’, ‘aioseo_disable_admin_bar’ ); function aioseo_disable_admin_bar( $enabled ) { return false; }Continue reading
add_filter( ‘aioseo_schema_graphs’, ‘aioseo_filter_schema_graphs’ ); function aioseo_filter_schema_graphs( $graphs ) { if ( is_singular( ‘post’ ) && ! in_array( ‘Article’, $graphs, true ) ) { $graphs[] = ‘Article’; } return $graphs; }Continue reading
add_filter( ‘aioseo_schema_disable’, ‘aioseo_disable_schema_products’ ); function aioseo_disable_schema_products( $disabled ) { if ( is_singular( ‘product’ ) && aioseo()->helpers->isWooCommerceActive() ) { return true; } return $disabled; }Continue reading
add_filter( ‘aioseo_schema_breadcrumbs_home’, ‘aioseo_filter_schema_breadcrumbs_home’ ); function aioseo_filter_schema_breadcrumbs_home( $name ) { return ‘Homepage’; }Continue reading
add_filter( ‘aioseo_robots_meta’, ‘aioseo_filter_robots_meta’ ); function aioseo_filter_robots_meta( $attributes ) { if ( is_singular() ) { $attributes[‘noindex’] = ‘noindex’; $attributes[‘nofollow’] = ‘nofollow’; } return $attributes; }Continue reading
add_filter( ‘aioseo_redirects_log_skip’, ‘redirects_log_skip’, 10, 2 ); function redirects_log_skip( $skip, $data ) { if ( 404 === $data[‘http_code’] ) { $skip = true; } return $skip; }Continue reading
add_filter( ‘aioseo_public_taxonomies’, ‘aioseo_filter_public_taxonomies’ ); function aioseo_filter_public_taxonomies( $taxonomies ) { $filteredTaxonomies = []; foreach ( $taxonomies as $taxonomiesObject ) { if ( ‘genre’ === $taxonomiesObject[‘name’] ) { continue; } $filteredTaxonomies[] = $taxonomiesObject; } return $filteredTaxonomies; }Continue reading
add_filter( ‘aioseo_public_post_types’, ‘aioseo_filter_public_post_types’ ); function aioseo_filter_public_post_types( $postTypes ) { $filteredPostTypes = []; foreach ( $postTypes as $postTypeObject ) { if ( is_array( $postTypeObject ) && ‘movie’ === $postTypeObject[‘name’] ) { continue; } $filteredPostTypes[] = $postTypeObject; } return $filteredPostTypes; }Continue reading
add_filter( ‘aioseo_page_builder_integration_disable’, ‘__return_true’ );Continue reading