wp_schedule_update_network_counts() WP 3.1.0
Schedule update of the network-wide counts for the current network.
Хуков нет.
Возвращает
null
. Ничего.
Использование
wp_schedule_update_network_counts();
Список изменений
С версии 3.1.0 | Введена. |
Код wp_schedule_update_network_counts() wp schedule update network counts WP 5.7.1
function wp_schedule_update_network_counts() {
if ( ! is_main_site() ) {
return;
}
if ( ! wp_next_scheduled( 'update_network_counts' ) && ! wp_installing() ) {
wp_schedule_event( time(), 'twicedaily', 'update_network_counts' );
}
}