WC_Notes_Run_Db_Update::__construct() public WC 1.0
Attach hooks.
{} Это метод класса: WC_Notes_Run_Db_Update{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$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 WC 5.0.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' ) );
}