views/noticias/wp-content/themes/supermag/acmethemes/admin-notice/class-admin-notice-handler.php
/**

	 * Get Started Notice

	 * Active callback of wp_loaded

	 * return void

	 */
Get Started Notice
Active callback of wp_loaded
return void
Get Started Notice Active callback of wp_loaded return void
public function admin_notice() {
		$notice_nag = get_option( 'supermag_admin_notice_welcome' );
		if ( ! $notice_nag ) {
			wp_enqueue_style( 'supermag-notice', get_template_directory_uri() . '/acmethemes/admin-notice/admin-notice.css', array(), '3.0.0' );
			wp_enqueue_script( 'supermag-adi-install', get_template_directory_uri()  . '/acmethemes/admin-notice/admin-notice.js', array( 'jquery' ), '', true );
			$translation = array(
			        'btn_text' => esc_html__( 'Processing...', 'supermag' ),
                    'nonce'    => wp_create_nonce( 'supermag_demo_import_nonce' )
            );
			wp_localize_script( 'supermag-adi-install', 'supermag_adi_install', $translation );
			add_action( 'admin_notices', array( $this, 'getting_started' ) );
		}
	}
public function admin_notice ( ) { $ notice_nag = get_option ( 'supermag_admin_notice_welcome' ) ; if ( ! $ notice_nag ) { wp_enqueue_style ( 'supermag-notice' , get_template_directory_uri ( ) . '/acmethemes/admin-notice/admin-notice.css' , array ( ) , '3.0.0' ) ; wp_enqueue_script ( 'supermag-adi-install' , get_template_directory_uri ( ) . '/acmethemes/admin-notice/admin-notice.js' , array ( 'jquery' ) , '' , true ) ; $ translation = array ( 'btn_text' => esc_html__ ( 'Processing...' , 'supermag' ) , 'nonce' => wp_create_nonce ( 'supermag_demo_import_nonce' ) ) ; wp_localize_script ( 'supermag-adi-install' , 'supermag_adi_install' , $ translation ) ; add_action ( 'admin_notices' , array ( $ this , 'getting_started' ) ) ; } }
Get Started Notice
 Active callback of wp_loaded
 return void
Get Started Notice Active callback of wp_loaded return void
/*Check for notice nag*/ /*admin notice hook*/