WC_Notes_Run_Db_Update::__construct()
Attach hooks.
Method of the class: WC_Notes_Run_Db_Update{}
No Hooks.
Return
null
. Nothing.
Usage
$WC_Notes_Run_Db_Update = new WC_Notes_Run_Db_Update(); $WC_Notes_Run_Db_Update->__construct();
WC_Notes_Run_Db_Update::__construct() WC Notes Run Db Update:: construct code WC 7.5.1
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' ) ); }