WordPress at Your Fingertips
function is not described

WC_Admin_Report::add_update_transients_hook() protected WC 1.0

Init the static hooks of the class.

{} It's a method of the class: WC_Admin_Report{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Admin_Report::add_update_transients_hook();

Code of WC_Admin_Report::add_update_transients_hook() WC 5.8.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' ) );
	}
}