WC_Admin_Report::add_update_transients_hook() protected WC 1.0
Init the static hooks of the class.
{} Это метод класса: WC_Admin_Report{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$result = WC_Admin_Report::add_update_transients_hook();
Код WC_Admin_Report::add_update_transients_hook() WC Admin Report::add update transients hook WC 5.0.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' ) );
}
}