442cb4e81b
* 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> |
||
---|---|---|
.. | ||
.wordpress-org | ||
api | ||
assets | ||
bin | ||
changelog | ||
images | ||
includes | ||
src | ||
typing | ||
userscripts | ||
.distignore | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc | ||
.gitignore | ||
.prettierrc.js | ||
.travis.yml | ||
.wp-env.json | ||
EXTENDING-WC-ADMIN-HELPER.md | ||
NEXT_CHANGELOG.md | ||
README.md | ||
changelog.txt | ||
composer.json | ||
composer.lock | ||
package.json | ||
phpcs.xml | ||
plugin.php | ||
tsconfig.json | ||
webpack.config.js | ||
woocommerce-beta-tester.php |
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.