Change Breadcrumb Homepage Name in Schema
add_filter( ‘aioseo_schema_breadcrumbs_home’, ‘aioseo_filter_schema_breadcrumbs_home’ ); function aioseo_filter_schema_breadcrumbs_home( $name ) { return ‘Homepage’; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
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
add_filter( ‘aioseo_local_business_taxonomy_slug’, ‘aioseo_change_local_business_taxonomy_slug’ ); function aioseo_change_local_business_taxonomy_slug( $slug ) { $slug = ‘franchise-state’; return $slug; }Continue reading
add_filter( ‘aioseo_local_business_taxonomy_name’, ‘aioseo_change_local_business_taxonomy_name’ ); function aioseo_change_local_business_taxonomy_name( $name ) { $name = ‘franchise-state’; return $name; }Continue reading
add_filter( ‘aioseo_local_business_taxonomy’, ‘aioseo_change_local_business_taxonomy’ ); function aioseo_change_local_business_taxonomy( $taxonomy ) { $taxonomy[‘hierarchical’] = true; return $taxonomy; }Continue reading
add_filter( ‘aioseo_local_business_post_type_slug’, ‘aioseo_change_local_business_post_type_slug’ ); function aioseo_change_local_business_post_type_slug( $slug ) { $slug = ‘franchise’; return $slug; }Continue reading