woocommerce/api/tools/trigger-wca-install.php

12 lines
230 B
PHP
Raw Normal View History

2021-03-04 00:56:39 +00:00
<?php
register_woocommerce_admin_test_helper_rest_route(
'/tools/trigger-wca-install/v1',
'tools_trigger_wca_install'
);
function tools_trigger_wca_install() {
Automattic\WooCommerce\Admin\Install::install();
return true;
}