WC_Admin_Report::add_update_transients_hook()protected staticWC 1.0

Init the static hooks of the class.

Method of the class: WC_Admin_Report{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Admin_Report::add_update_transients_hook();

WC_Admin_Report::add_update_transients_hook() code WC 8.9.0

protected static function add_update_transients_hook() {
	if ( ! has_action( 'shutdown', array( 'WC_Admin_Report', 'maybe_update_transients' ) ) ) {
		add_action( 'shutdown', array( 'WC_Admin_Report', 'maybe_update_transients' ) );
	}
}