'POST', 'callback' => $callback, 'permission_callback' => function ( $request ) { if ( ! wc_rest_check_manager_permissions( 'settings', 'edit' ) ) { return new \WP_Error( 'woocommerce_rest_cannot_edit', __( 'Sorry, you cannot perform this action', 'woocommerce-beta-tester' ) ); } return true; }, ); $default_options = array_merge( $default_options, $additional_options ); register_rest_route( 'wc-admin-test-helper', $route, $default_options ); } ); } require 'admin-notes/delete-all-notes.php'; require 'admin-notes/add-note.php'; require 'tools/trigger-wca-install.php'; require 'tools/trigger-cron-job.php'; require 'tools/run-wc-admin-daily.php'; require 'options/rest-api.php'; require 'tools/delete-all-products.php'; require 'tools/disable-wc-email.php'; require 'tools/trigger-update-callbacks.php'; require 'tools/reset-cys.php'; require 'tools/set-block-template-logging-threshold.php'; require 'tools/set-coming-soon-mode.php'; require 'tools/fake-woo-payments-gateway.php'; require 'tracks/class-tracks-debug-log.php'; require 'features/features.php'; require 'rest-api-filters/class-wca-test-helper-rest-api-filters.php'; require 'rest-api-filters/hook.php'; require 'live-branches/manifest.php'; require 'live-branches/install.php'; require 'remote-spec-validator/class-wca-test-helper-remote-spec-validator.php'; require 'remote-inbox-notifications/class-wca-test-helper-remote-inbox-notifications.php'; require 'remote-logging/remote-logging.php'; require 'tools/wccom-request-errors.php';