WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Install::create_cron_jobs() WC 1.0

Create cron jobs (clear them first).

Это метод класса: WC_Install

Хуки из метода
Возвращает

Ничего (null).

Использование

$var = WC_Install::create_cron_jobs();

Код WC Install::create cron jobs: woocommerce/includes/class-wc-install.php WC 3.6.3

<?php
private static function create_cron_jobs() {
	wp_clear_scheduled_hook( 'woocommerce_scheduled_sales' );
	wp_clear_scheduled_hook( 'woocommerce_cancel_unpaid_orders' );
	wp_clear_scheduled_hook( 'woocommerce_cleanup_sessions' );
	wp_clear_scheduled_hook( 'woocommerce_cleanup_personal_data' );
	wp_clear_scheduled_hook( 'woocommerce_cleanup_logs' );
	wp_clear_scheduled_hook( 'woocommerce_geoip_updater' );
	wp_clear_scheduled_hook( 'woocommerce_tracker_send_event' );

	$ve = get_option( 'gmt_offset' ) > 0 ? '-' : '+';

	wp_schedule_event( strtotime( '00:00 tomorrow ' . $ve . absint( get_option( 'gmt_offset' ) ) . ' HOURS' ), 'daily', 'woocommerce_scheduled_sales' );

	$held_duration = get_option( 'woocommerce_hold_stock_minutes', '60' );

	if ( '' !== $held_duration ) {
		wp_schedule_single_event( time() + ( absint( $held_duration ) * 60 ), 'woocommerce_cancel_unpaid_orders' );
	}

	wp_schedule_event( time(), 'daily', 'woocommerce_cleanup_personal_data' );
	wp_schedule_event( time() + ( 3 * HOUR_IN_SECONDS ), 'daily', 'woocommerce_cleanup_logs' );
	wp_schedule_event( time() + ( 6 * HOUR_IN_SECONDS ), 'twicedaily', 'woocommerce_cleanup_sessions' );
	wp_schedule_event( strtotime( 'first tuesday of next month' ), 'monthly', 'woocommerce_geoip_updater' );
	wp_schedule_event( time() + 10, apply_filters( 'woocommerce_tracker_event_recurrence', 'daily' ), 'woocommerce_tracker_send_event' );

	// Trigger GeoLite2 database download after 1 minute.
	wp_schedule_single_event( time() + ( MINUTE_IN_SECONDS * 1 ), 'woocommerce_geoip_updater' );
}