display( 'Name' ), $blume_beauty_theme->display( 'Name' ), 'manage_options', 'blume-beauty', 'blume_beauty_do_admin_page' ); } add_action( 'admin_menu', 'blume_beauty_admin_menu_page' ); /** * Enqueue getting started styles and scripts */ function nordicwp_widgets_backend_enqueue() { wp_enqueue_style( 'nordicwp-getting-started', get_template_directory_uri() . '/about-theme/about-theme.css' ); } add_action( 'admin_enqueue_scripts', 'nordicwp_widgets_backend_enqueue' ); /** * Class Nordic_Notice_Handler */ class Nordic_Notice_Handler { public static $nonce; /** * Empty Constructor */ public function __construct() { // Activation notice add_action( 'switch_theme', array( $this, 'flush_dismiss_status' ) ); add_action( 'admin_init', array( $this, 'getting_started_notice_dismissed' ) ); add_action( 'admin_notices', array( $this, 'nordicwp_theme_info_welcome_admin_notice' ), 3 ); add_action( 'wp_ajax_nordicwp_getting_started', array( $this, 'nordicwp_getting_started' ) ); } /** * Display an admin notice linking to the about page */ public function nordicwp_theme_info_welcome_admin_notice() { $current_screen = get_current_screen(); $blume_beauty_theme = wp_get_theme(); if ( is_admin() && ! get_user_meta( get_current_user_id(), 'gs_notice_dismissed' ) && $current_screen->base != 'appearance_page_blume-beauty' ) { echo '
' . sprintf( esc_html__( 'Welcome! Thank you for choosing %1$s.', 'blume-beauty' ), esc_html( $blume_beauty_theme->get( 'Name' ) ) ) . '
'; echo '' . esc_html__( 'By clicking "Get Started," you can access our theme features.', 'blume-beauty' ) . '
'; echo ''; echo 'Dismiss'; echo '