woocommerce/plugins/woocommerce-beta-tester
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
..
.wordpress-org .org assets 2018-06-07 15:01:32 +01:00
api [Beta tester] Add tool for changing woocommerce.com base URL (#51537) 2024-09-24 19:37:57 +08:00
assets Regenerate PNPM Lock File & Fix Errors (#41830) 2023-12-05 00:36:30 -08:00
bin Monorepo: zips build script update (frozen lock files) (#49640) 2024-07-19 13:07:48 +02:00
changelog [Beta tester] Add tool for changing woocommerce.com base URL (#51537) 2024-09-24 19:37:57 +08:00
images Move admin tester folders to root 2022-06-07 15:18:37 +12:00
includes [Beta Tester] Add tool to force wccom endpoint errors or timeout (#50654) 2024-08-19 20:35:59 +12:00
src [Beta tester] Add tool for changing woocommerce.com base URL (#51537) 2024-09-24 19:37:57 +08:00
typing Add remote logging tool to beta tester (#50425) 2024-08-08 11:12:51 +08:00
userscripts add: reactify payments settings feature flag (#49966) 2024-07-25 12:48:34 +08:00
.distignore Remove unneeded files from distribution package (#35000) 2022-10-10 07:36:20 -07:00
.editorconfig Introduced .editorconfig 2018-06-04 16:06:33 -03:00
.eslintignore Copy eslint ignores to beta-tester 2022-06-07 15:13:14 +12:00
.eslintrc Clean up eslintrc in favour of defaults 2022-06-08 14:03:16 +12:00
.gitignore Copy git ignores to beta-tester 2022-06-07 15:14:21 +12:00
.prettierrc.js Introduce live branches UI page to WooCommerce Beta Tester (#35643) 2022-11-30 14:17:27 +13:00
.travis.yml Install composer packages on Travis build to be able to use phpcs 2019-03-13 16:42:52 -03:00
.wp-env.json Applied PHPCS To Beta Tester (#39476) 2023-08-08 17:20:34 -07:00
EXTENDING-WC-ADMIN-HELPER.md Update WooCommerce beta tester README (#35090) 2022-10-18 09:22:51 -07:00
NEXT_CHANGELOG.md Dev/beta tester (#34993) 2022-10-07 10:29:02 -07:00
README.md [DOC] Resolve incorrect branch references in Gutenberg links (#44566) 2024-02-15 14:13:28 -03:00
changelog.txt Prepare 2.4.0 Beta Tester Release (#50461) 2024-08-08 14:20:44 +08:00
composer.json Prepare 2.4.0 Beta Tester Release (#50461) 2024-08-08 14:20:44 +08:00
composer.lock Prepare 2.4.0 Beta Tester Release (#50461) 2024-08-08 14:20:44 +08:00
package.json Use syncpack to lock pnpm version till we can fix issues (#50828) 2024-08-22 12:34:42 +12:00
phpcs.xml Bump WooCommerce minimum required PHP version to 7.4 (#39820) 2023-08-22 09:21:09 +02:00
plugin.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
tsconfig.json Fixed Beta Tester TSConfig (#37841) 2023-04-25 13:20:04 -07:00
webpack.config.js Monorepo: actualize loaders paths filtering for better Webpack performance. (#49714) 2024-07-29 15:20:17 +02:00
woocommerce-beta-tester.php [beta tester] Simulate core error early in the request lifecycle before WP fully loaded. (#51330) 2024-09-19 12:22:53 +08:00

README.md

WooCommerce Beta Tester

A plugin that makes it easy to test out pre-releases such as betas release candidates and even final releases. It also comes with WooCommerce Admin Test Helper that helps test WooCommerce Admin functionalities.

Installation

You can either install the latest version from wp.org or symlink this directory by running ln -s ./ :path-to-your-wp-plugin-directory/woocommerce-beta-tester

Development

To get started, run the following commands:

pnpm --filter=@woocommerce/plugin-woocommerce-beta-tester install
pnpm --filter=@woocommerce/plugin-woocommerce-beta-tester start

See wp-scripts for more usage information.

Usage

You can get to the settings and features from your top admin bar under the name WC Beta Tester.

For more information about WooCommerce Admin Test Helper usage, click here.

Run ./bin/build-zip.sh to make a zip file.