WC_Notes_Run_Db_Update::__construct()publicWC 1.0

Attach hooks.

Method of the class: WC_Notes_Run_Db_Update{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Notes_Run_Db_Update = new WC_Notes_Run_Db_Update();
$WC_Notes_Run_Db_Update->__construct();

WC_Notes_Run_Db_Update::__construct() code WC 8.7.0

public function __construct() {
	// If the old notice gets dismissed, also hide this new one.
	add_action( 'woocommerce_hide_update_notice', array( __CLASS__, 'set_notice_actioned' ) );

	// Not using Jetpack\Constants here as it can run before 'plugin_loaded' is done.
	if ( defined( 'DOING_AJAX' ) && DOING_AJAX
		|| defined( 'DOING_CRON' ) && DOING_CRON
		|| ! is_admin() ) {
		return;
	}

	add_action( 'current_screen', array( __CLASS__, 'show_reminder' ) );
}