woocommerce/plugins/woocommerce-beta-tester/api/tools
Chi-Hsuan Huang 442cb4e81b
[Beta tester] Add tool for changing woocommerce.com base URL (#51537)
* Refactor WooCommerce Helper class

This commit refactors the WooCommerce Helper class in the `class-wc-helper.php` file. The changes include:
- Updating the comparison operator from `==` to `===` in the `activate_plugin` condition.
- Renaming the `get_install_base_url` method to `get_woocommerce_com_base_url`.
- Adding a new `get_install_base_url` method that returns the base URL for the plugin auto installer.

These changes improve the readability and maintainability of the code.

* Refactor data source poller classes for marketing recommendations, payment gateway suggestions, shipping partner suggestions, inbox notifications, remote free extensions, and WooPayments promotion

- Refactor the data source poller classes for marketing recommendations, payment gateway suggestions, shipping partner suggestions, inbox notifications, remote free extensions, and WooPayments promotion to use a dynamic base URL for the data sources.
- Update the deprecated DATA_SOURCES constant to an empty array in each class.
- Add a new method get_data_sources() in each class to return the updated data sources with the dynamic base URL.
- Modify the constructor of each class to use the get_data_sources() method instead of the deprecated DATA_SOURCES constant.

* Add changelog

* Add set-woocom-base-url tool

* Add changelog

* Rename woo_com and woocom -> wccom

* Change to falsy check !url

* Change woocom/WOOCOM to wccom/WCCOM

* Change default value to https://woocommerce.com/

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2024-09-24 19:37:57 +08:00
..
class-fake-wcpayments.php Refactor WooCommercePayments task to use woo payment gateway from`WC()->payment_gateways->payment_gateways()` (#50953) 2024-08-28 10:44:28 +08:00
delete-all-products.php Applied PHPCS To Beta Tester (#39476) 2023-08-08 17:20:34 -07:00
disable-wc-email.php Applied PHPCS To Beta Tester (#39476) 2023-08-08 17:20:34 -07:00
fake-woo-payments-gateway.php [Beta tester] Add fake WooPayments completion tool (#50699) 2024-08-22 10:27:35 +08:00
reset-cys.php WooCommerce Beta Tester - CYS: implement removing patterns_ai_data post type (#41285) 2023-11-08 12:07:30 +01:00
run-wc-admin-daily.php Applied PHPCS To Beta Tester (#39476) 2023-08-08 17:20:34 -07:00
set-block-template-logging-threshold.php Update default threshold to WARNING 2023-11-14 16:23:00 -05:00
set-coming-soon-mode.php Add beta tester tool to force the coming soon landing pages to display on the front-end (#49341) 2024-07-16 11:55:38 +00:00
set-wccom-base-url.php [Beta tester] Add tool for changing woocommerce.com base URL (#51537) 2024-09-24 19:37:57 +08:00
trigger-cron-job.php Applied PHPCS To Beta Tester (#39476) 2023-08-08 17:20:34 -07:00
trigger-update-callbacks.php Add beta tester tool to force the coming soon landing pages to display on the front-end (#49341) 2024-07-16 11:55:38 +00:00
trigger-wca-install.php Applied PHPCS To Beta Tester (#39476) 2023-08-08 17:20:34 -07:00
wccom-request-errors.php [Beta Tester] Add tool to force wccom endpoint errors or timeout (#50654) 2024-08-19 20:35:59 +12:00