Set AIOSEO Metabox Priority to Low
add_filter( ‘aioseo_post_metabox_priority’, ‘aioseo_filter_metabox_priority’ ); function aioseo_filter_metabox_priority( $priority) { return ‘low’; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
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
add_filter( “aioseo_user_profile_tab_disable”, “__return_true” );Continue reading
add_filter( ‘aioseo_user_profile_tab_allowed_user_ids’, ‘aioseo_profile_tab_allowed_users’, 10, 2 ); function aioseo_profile_tab_allowed_users( $user_ids, $user_id ) { if ( ! user_can( $user_id, ‘edit_posts’ ) ) { $user_ids[] = $user_id; } return $user_ids; }Continue reading
add_filter( ‘aioseo_twitter_tags’, ‘aioseo_filter_twitter_title’ ); function aioseo_filter_twitter_title( $twitterMeta ) { if ( is_singular() && ’14’ === get_the_ID() ) { $twitterMeta[‘twitter:title’] = “A different title”; } return $twitterMeta; }Continue reading
add_filter( “aioseo_sitemap_term”, “aioseo_filter_sitemap_term”, 10, 2 ); function aioseo_filter_sitemap_term( $entry, $termId ) { if ( 12 === $termId) { // Set the language code for the main URL. $entry[‘language’] = ‘en_US’ // Add the translated versions (language code + URL). $entry[‘languages’]…Continue reading
add_filter( ‘aioseo_sitemap_rss’, ‘aioseo_filter_rss_sitemap_entries’ ); function aioseo_filter_rss_sitemap_entries( $entries ) { $entries = array_map( function ( $entry ) { if ( empty( $entry[‘pubDate’] ) ) { return $entry; } $dateTime = new DateTime(); $dateTime->setTimestamp( strtotime( $entry[‘pubDate’] ) ); $dateTime->setTimezone( new DateTimeZone( ‘Europe/Moscow’…Continue reading