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
add_filter( ‘aioseo_post_metabox_priority’, ‘aioseo_filter_metabox_priority’ ); function aioseo_filter_metabox_priority( $priority) { return ‘low’; }Continue reading
add_filter( ‘aioseo_conflicting_shortcodes’, ‘aioseo_filter_conflicting_shortcodes’ ); function aioseo_filter_conflicting_shortcodes( $conflictingShortcodes ) { $conflictingShortcodes = array_merge( $conflictingShortcodes, [ ‘WISDM Group Registration’ => ‘[wdm_group_users]’, ‘WISDM Quiz Reporting’ => ‘[wdm_quiz_statistics_details]’, ‘WISDM Course Review’ => ‘[rrf_course_review]’ ] ); return $conflictingShortcodes; }Continue reading
add_filter( ‘aioseo_access_control_excluded_roles’, ‘aioseo_filter_access_control_excluded_roles’ ); function aioseo_filter_access_control_excluded_roles( $roles ) { if ( ( $key = array_search( ‘customer’, $roles ) ) !== false ) { unset( $roles[ $key ] ); } return $roles; }Continue reading
// Disable auto-update email notifications add_filter(‘auto_core_update_send_email’, ‘disable_auto_update_emails’, 10, 4); function disable_auto_update_emails($send, $type, $core_update, $result) { if ( !empty($type) && $type == ‘success’ ) { return false; } return true; } // Disable plugin and theme update email notifications add_filter(‘auto_plugin_update_send_email’, ‘__return_false’);…Continue reading