generation if SEO Title Tag is active. if ( function_exists( 'seo_title_tag' ) ) { remove_filter( 'wp_title', 'genesis_default_title', 10, 3 ); remove_action( 'genesis_title', 'wp_title' ); add_action( 'genesis_title', 'seo_title_tag' ); } } add_action( 'admin_init', 'genesis_disable_scribe_nag' ); /** * Potentially disable Scribe admin notice. * * Detect a query flag, and disables the Scribe nag, then redirect the user back to the SEO settings page. * * @since 1.4.0 * * @return null Return early if not on the SEO Settings page, or `dismiss-scribe` querystring argument * not present and set to `'true'`. */ function genesis_disable_scribe_nag() { if ( ! genesis_is_menu_page( 'seo-settings' ) ) { return; } if ( ! isset( $_REQUEST['dismiss-scribe'] ) || 'true' !== $_REQUEST['dismiss-scribe'] ) { return; } update_option( 'genesis-scribe-nag-disabled', 1 ); genesis_admin_redirect( 'seo-settings' ); exit; } /** * Detect some SEO Plugin that add constants, classes or functions. * * Applies `genesis_detect_seo_plugins` filter to allow third party manipulation of SEO plugin list. * * @since 1.6.0 * * @return bool `true` if plugin exists, or `false` if plugin constant, class or function not detected. */ function genesis_detect_seo_plugins() { return genesis_detect_plugin( // Use this filter to adjust plugin tests. apply_filters( 'genesis_detect_seo_plugins', // Add to this array to add new plugin checks. array( // Classes to detect. 'classes' => array( 'All_in_One_SEO_Pack', 'All_in_One_SEO_Pack_p', 'HeadSpace_Plugin', 'Platinum_SEO_Pack', 'wpSEO', 'SEO_Ultimate', ), // Functions to detect. 'functions' => array(), // Constants to detect. 'constants' => array( 'WPSEO_VERSION' ), ) ) ); }