Hide All Admin Notices in Sidebar
// Hide all admin notices in a collapsible sidebar function hide_all_admin_notices_in_sidebar() { ?>Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
// Hide all admin notices in a collapsible sidebar function hide_all_admin_notices_in_sidebar() { ?>Continue reading
add_filter( ‘upload_mimes’, function( $mimes ) { $mimes[‘woff’] = ‘application/x-font-woff’; $mimes[‘woff2’] = ‘application/x-font-woff2’; $mimes[‘ttf’] = ‘application/x-font-ttf’; $mimes[‘svg’] = ‘image/svg+xml’; $mimes[‘eot’] = ‘application/vnd.ms-fontobject’; return $mimes; } );Continue reading
add_filter( ‘aioseo_schema_output’, ‘aioseo_filter_schema_output’ ); function aioseo_filter_schema_output( $graphs ) { if ( is_singular( ‘post’ ) ) { foreach ( $graphs as $index => $graph ) { if ( ‘Article’ === $graph[‘@type’] ) { unset( $graphs[ $index ][‘author’] ); } if (…Continue reading
add_filter( ‘aioseo_schema_output’, ‘aioseo_filter_schema_output’ ); function aioseo_filter_schema_output( $schema ) { foreach ( $schema as $index => $graphData ) { if ( empty( $graphData[‘@type’] ) ) { continue; } $type = strtolower( $graphData[‘@type’] ); switch ( $type ) { case ‘article’: case…Continue reading
add_filter( ‘aioseo_schema_output’, ‘aioseo_filter_schema_output’ ); function aioseo_filter_schema_output( $graphs ) { if ( is_singular( ‘post’ ) ) { foreach ( $graphs as $index => $graph ) { if ( ‘Article’ === $graph[‘@type’] ) { unset( $graphs[ $index ] ); } } }…Continue reading
add_filter( ‘aioseo_schema_output’, ‘aioseo_filter_schema_output’ ); function aioseo_filter_schema_output( $graphs ) { foreach ( $graphs as $index => $graph ) { if ( ‘BreadcrumbList’ === $graph[‘@type’] ) { unset( $graphs[ $index ] ); } foreach ( $graph as $key => $value ) {…Continue reading
add_filter( ‘aioseo_local_business_post_type’, ‘aioseo_change_local_business_post_type’ ); function aioseo_change_local_business_post_type( $post_type ) { $post_type[‘supports’][] = ‘excerpt’; $post_type[‘supports’][] = ‘page-attributes’; return $post_type; }Continue reading
add_filter( ‘aioseo_social_image_ignore_cover_block’, ‘__return_true’ );Continue reading
add_filter( ‘aioseo_sitemap_lastmod_disable’, ‘__return_true’ );Continue reading
add_filter( ‘aioseo_schema_json_flags’, function() { return JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE; } );Continue reading