WC_Product_Usage_Notice::load
Loads the class, runs on init.
Method of the class: WC_Product_Usage_Notice{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = WC_Product_Usage_Notice::load();
WC_Product_Usage_Notice::load() WC Product Usage Notice::load code WC 10.5.0
public static function load() {
add_action( 'current_screen', array( __CLASS__, 'maybe_show_product_usage_notice' ) );
add_action( 'wp_ajax_woocommerce_dismiss_product_usage_notice', array( __CLASS__, 'ajax_dismiss' ) );
add_action( 'wp_ajax_woocommerce_remind_later_product_usage_notice', array( __CLASS__, 'ajax_remind_later' ) );
}