woocommerce/plugins/woocommerce-beta-tester/api
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
..
admin-notes Deprecate unsupported Inbox note banner layout (#51275) 2024-09-13 01:11:11 +00:00
features Applied PHPCS To Beta Tester (#39476) 2023-08-08 17:20:34 -07:00
live-branches Applied PHPCS To Beta Tester (#39476) 2023-08-08 17:20:34 -07:00
options [Beta Tester] Flush cache after deleting option and resetting PHP rate limit (#50512) 2024-08-12 18:05:01 +08:00
remote-inbox-notifications Beta tester - fix lint errors (#48825) 2024-06-25 21:09:14 -07:00
remote-logging Reducing Noise in Remote Logging (#51357) 2024-09-18 08:57:32 +08:00
remote-spec-validator Fix lint errors with remote spec validator endpoint (#47520) 2024-05-16 15:25:59 -07:00
rest-api-filters Applied PHPCS To Beta Tester (#39476) 2023-08-08 17:20:34 -07:00
tools [Beta tester] Add tool for changing woocommerce.com base URL (#51537) 2024-09-24 19:37:57 +08:00
tracks Allow print_r in beta tester logger (#41101) 2023-10-30 12:35:54 -05:00
api.php [Beta tester] Add tool for changing woocommerce.com base URL (#51537) 2024-09-24 19:37:57 +08:00