Automattic\WooCommerce\Internal\Admin\Schedulers

CustomersScheduler::schedule_user_delete()public staticWC 1.0

Schedule an action to delete a single User.

{} Это метод класса: CustomersScheduler{}

Хуков нет.

Возвращает

null. Ничего.

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

$result = CustomersScheduler::schedule_user_delete( $user_id );
$user_id(int) (обязательный)
User ID.

Код CustomersScheduler::schedule_user_delete() WC 6.6.1

public static function schedule_user_delete( $user_id ) {
	if ( (int) $user_id > 0 && ! doing_action( 'wp_uninitialize_site' ) ) {
		// Postpone until any pending updates are completed.
		self::schedule_action( 'delete_user', array( $user_id ) );
	}
}