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

18 lines
291 B
PHP

<?php
defined( 'ABSPATH' ) || exit;
register_woocommerce_admin_test_helper_rest_route(
'/tools/trigger-wca-install/v1',
'tools_trigger_wca_install'
);
/**
* A tool to trigger the WooCommerce install.
*/
function tools_trigger_wca_install() {
\WC_Install::install();
return true;
}