Disable Redirect Logging in AIOSEO Redirects
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
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
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
add_filter( ‘aioseo_local_business_post_type_single_label’, ‘aioseo_change_local_business_post_type_single_label’ ); function aioseo_change_local_business_post_type_single_label( $label ) { $label = ‘Franchise’; return $label; }Continue reading
add_filter( ‘aioseo_local_business_post_type_plural_label’, ‘aioseo_change_local_business_post_type_plural_label’ ); function aioseo_change_local_business_post_type_plural_label( $label ) { $label = ‘Franchises’; return $label; }Continue reading