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
// This code removes the default ‘Edit Profile’ tab from the Paid Member Subscriptions account page // and replaces it with a custom tab named ‘Edit Profile’ tab that properly renders the WYSIWYG Profile Builder form. // This allows the…Continue reading
// This code removes the default ‘Edit Profile’ tab from the Paid Member Subscriptions account page // and replaces it with a custom tab named ‘Edit Profile’ tab that properly renders the WYSIWYG Profile Builder form. // This allows the…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
add_filter( ‘aioseo_post_metabox_priority’, ‘aioseo_filter_metabox_priority’ ); function aioseo_filter_metabox_priority( $priority) { return ‘low’; }Continue reading