woocommerce/plugins/woocommerce-beta-tester/api/tools/trigger-wca-install.php

18 lines
291 B
PHP
Raw Permalink Normal View History

2021-03-04 00:56:39 +00:00
<?php
2023-08-09 00:20:34 +00:00
defined( 'ABSPATH' ) || exit;
2021-03-04 00:56:39 +00:00
register_woocommerce_admin_test_helper_rest_route(
'/tools/trigger-wca-install/v1',
'tools_trigger_wca_install'
);
2023-08-09 00:20:34 +00:00
/**
* A tool to trigger the WooCommerce install.
*/
2021-03-04 00:56:39 +00:00
function tools_trigger_wca_install() {
\WC_Install::install();
2021-03-04 00:56:39 +00:00
return true;
}