WC_Admin_Report::add_update_transients_hook()

Init the static hooks of the class.


Description Description


Source Source

File: includes/admin/reports/class-wc-admin-report.php

	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' ) );
		}
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.