includes(); add_action( 'admin_notices', array( $this, 'setup_wizard_notice' ) ); add_action( 'admin_notices', array( $this, 'how_to_schema_deprecated_notice' ) ); add_action( 'wp_ajax_wp_schema_pro_setup_wizard_notice', array( $this, 'wp_schema_pro_setup_wizard_notice_callback' ) ); } /** * Display a notice about the deprecation of the HowTo schema. */ public function how_to_schema_deprecated_notice() { $screen = get_current_screen(); // Only display the notice on the settings page of the Schema Pro if ( 'settings_page_aiosrs_pro_admin_menu_page' === $screen->id ) { echo '
'; echo '

' . esc_html__( 'Please be advised that the HowTo schema is now deprecated according to the latest Google guidelines ', 'wp-schema-pro' ) . '' . esc_html__( 'Take a look here.', 'wp-schema-pro' ) . '

'; echo '
'; } } /** * Setup Wizard * * @since 1.1.0 */ public function setup_wizard_notice() { if ( get_transient( 'wp-schema-pro-activated' ) ) { $url = admin_url( 'index.php?page=aiosrs-pro-setup-wizard' ); $branding_notice = BSF_AIOSRS_Pro_Helper::$settings['wp-schema-pro-branding-settings']; echo '
'; if ( '' !== $branding_notice['sp_plugin_name'] ) { /* translators: %s: search term */ $brand_notice = sprintf( esc_html__( 'Configure %s step by step. ', 'wp-schema-pro' ), $branding_notice['sp_plugin_name'] ); echo '

' . esc_html( $brand_notice ) . '' . esc_html__( 'Start Setup Wizard »', 'wp-schema-pro' ) . '

'; } else { echo '

' . esc_html__( 'Not sure where to start with Schema Pro? Check out our initial ', 'wp-schema-pro' ) . '' . esc_html__( 'setup wizard first »', 'wp-schema-pro' ) . '

'; } echo '
'; ?>