Output og:image that uses the Large Size Image
add_filter( ‘aioseo_thumbnail_size’, function( $imageSize ) { return ‘large’; } );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘aioseo_thumbnail_size’, function( $imageSize ) { return ‘large’; } );Continue reading
// Hide all admin notices in a collapsible sidebar function hide_all_admin_notices_in_sidebar() { ?>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
function mepr_sub_expiration_shortcode( $atts = [], $content = null, $tag = ” ) { $sub_expire_html = ”; if( $atts[‘membership’] && is_numeric( $atts[‘membership’] ) ) { $date_str = MeprUser::get_user_product_expires_at_date(get_current_user_id(), $atts[‘membership’]); if ( $date_str ) { $date = date_create( $date_str ); $sub_expire_html =…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