woocommerce/plugins/woocommerce-beta-tester/api/tools/run-wc-admin-daily.php

18 lines
291 B
PHP
Raw Normal View History

2021-04-28 23:53:07 +00:00
<?php
2023-08-09 00:20:34 +00:00
defined( 'ABSPATH' ) || exit;
2021-04-28 23:53:07 +00:00
register_woocommerce_admin_test_helper_rest_route(
'/tools/run-wc-admin-daily/v1',
'tools_run_wc_admin_daily'
);
2023-08-09 00:20:34 +00:00
/**
* A tool to run the daily wc-admin cron.
*/
2021-04-28 23:53:07 +00:00
function tools_run_wc_admin_daily() {
2023-08-09 00:20:34 +00:00
do_action( 'wc_admin_daily' );
2021-04-28 23:53:07 +00:00
return true;
}