A customizable, open-source ecommerce platform built on WordPress. Build any commerce solution you can imagine.
Go to file
jonathansadowski 178e731b9d
Sync 38702 (#38704)
Squashed commit of the following:

commit 8ccd8e26127594e859b37ead9fd150f05d36d9f5
Author: barryhughes <3594411+barryhughes@users.noreply.github.com>
Date:   Mon Jun 5 19:37:57 2023 -0700

    Do not output payment gateway nonce to unqualified users.

commit 882946bb18dee5eb7ffea48ddfbd4c14a5092c94
Author: barryhughes <3594411+barryhughes@users.noreply.github.com>
Date:   Wed Jun 7 14:24:58 2023 -0700

    Instead of looking for `?wc-ajax`, specifically exempt `admin-ajax.php`.

    This mimics the existing approach used for `admin-post.php` requests, and is stricter by default.

commit 99cffd7cde1aa87176254845c732c91a446232f7
Author: barryhughes <3594411+barryhughes@users.noreply.github.com>
Date:   Tue Jun 6 12:40:21 2023 -0700

    Nonce verification not needed when evaluating ajax properties.

commit 99157d2a18ea78c68c265609dfdd1bddadeee7b2
Author: barryhughes <3594411+barryhughes@users.noreply.github.com>
Date:   Tue Jun 6 12:38:53 2023 -0700

    Document `woocommerce_disable_admin_bar` hook.

commit badcf8f50099dd38fa855d2aa71c8507d3f2a252
Author: barryhughes <3594411+barryhughes@users.noreply.github.com>
Date:   Mon Jun 5 18:49:25 2023 -0700

    Describe expectations around customer access to the dashboard.

commit 127053e1c27e7da5515c6638859fa09384241624
Author: barryhughes <3594411+barryhughes@users.noreply.github.com>
Date:   Mon Jun 5 13:30:03 2023 -0700

    'wc-ajax' requests should be filtered out of admin access logic.

commit 2e8182761e050cc4371181eaa197b6d4b2867f89
Author: Vedanshu Jain <vedanshu.jain.2012@gmail.com>
Date:   Fri May 12 15:15:57 2023 +0530

    Clean up individual escape to also do it again when it is used.
2023-06-16 11:04:45 -05:00
.github Monorepo Setup: Pin phpcs-changed version (#38754) 2023-06-16 14:04:18 +12:00
.husky Remove the post-checkout hook it was causing too much friction. (#37024) 2023-03-03 12:43:18 +13:00
bin Update extend-cart-checkout-block dependency 2023-03-14 11:57:22 +07:00
changelog Rename changelog/fix-default-selected-state-for-country to plugins/woocommerce/changelog/fix-default-selected-state-for-country 2023-05-25 15:17:27 -05:00
docs Add suggestion from code review 2023-06-06 16:33:53 +02:00
packages Keep showing product editor feedback bar after feedback modal shown (#38773) 2023-06-16 11:51:18 -04:00
plugins Sync 38702 (#38704) 2023-06-16 11:04:45 -05:00
tools Update method_exists call. 2023-06-13 14:53:24 -07:00
.codecov.yml Turn on code-cov for PR checking of unit test coverage (#36548) 2023-02-09 22:08:36 +13:00
.editorconfig JS formatting files 2021-10-19 10:35:46 +13:00
.eslintignore JS formatting files 2021-10-19 10:35:46 +13:00
.eslintrc.js Designate root level eslint config 2021-12-13 08:13:40 -08:00
.gitattributes Enforce LF Line Endings (#37843) 2023-04-19 08:26:19 -07:00
.gitignore Consistent folder structure for E2E and API test results (#35907) 2022-12-19 14:33:22 +08:00
.npmrc Upgrade to pnpm 7 (#34661) 2022-09-16 09:21:42 +12:00
.nvmrc Update package and node version 2021-12-15 07:08:37 -08:00
.prettierrc.js JS formatting files 2021-10-19 10:35:46 +13:00
.stylelintrc Deprecate stylelint-config-wordpress with current package 2021-12-14 09:14:54 -08:00
.syncpackrc Fix linter issues and update Syncpack (#38523) 2023-05-31 11:45:10 +12:00
CODEOWNERS Add codeowners file (#35765) 2022-11-29 13:18:45 -08:00
CODE_OF_CONDUCT.md Fixed a typo 2017-06-19 16:22:40 -03:00
DEVELOPMENT.md Add troubleshooting for PHP install (#38239) 2023-05-19 12:03:43 +12:00
README.md Add troubleshooting for PHP install (#38239) 2023-05-19 12:03:43 +12:00
SECURITY.md Removed the reference to WP mobile apps. 2020-10-02 11:51:35 +02:00
changelog.txt Update changelog.txt from release 7.7.2 (#38555) 2023-06-16 11:36:36 +12:00
package.json Fix linter issues and update Syncpack (#38523) 2023-05-31 11:45:10 +12:00
phpcs.xml Bump WooCommerce minimum required PHP version to 7.3 2023-03-21 16:56:34 +01:00
pnpm-lock.yaml Add initial release of WooAI plugin (#38610) 2023-06-08 13:20:05 -07:00
pnpm-workspace.yaml Code Freeze CLI: Remove old version bump tool (#38182) 2023-05-12 09:15:03 +12:00
renovate.json Converted Spaces To Tabs In JSON 2022-05-10 13:31:01 -07:00
tsconfig.base.json Removed TypeScript Incremental Build Support (#37374) 2023-03-23 11:25:42 -07:00
turbo.json Added Build File Caching (#37459) 2023-03-28 12:48:20 -07:00

README.md

WooCommerce

Welcome to the WooCommerce Monorepo on GitHub. Here you can find all of the plugins, packages, and tools used in the development of the core WooCommerce plugin as well as WooCommerce extensions. You can browse the source, look at open issues, contribute code, and keep tracking of ongoing development.

We recommend all developers to follow the WooCommerce development blog to stay up to date about everything happening in the project. You can also follow @DevelopWC on Twitter for the latest development updates.

Getting Started

To get up and running within the WooCommerce Monorepo, you will need to make sure that you have installed all of the prerequisites.

Prerequisites

  • NVM: While you can always install Node through other means, we recommend using NVM to ensure you're aligned with the version used by our development teams. Our repository contains an .nvmrc file which helps ensure you are using the correct version of Node.
  • PNPM: Our repository utilizes PNPM to manage project dependencies and run various scripts involved in building and testing projects.
  • PHP 7.2+: WooCommerce Core currently features a minimum PHP version of 7.2. It is also needed to run Composer and various project build scripts. See troubleshooting for troubleshooting problems installing PHP.
  • Composer: We use Composer to manage all of the dependencies for PHP packages and plugins.

Once you've installed all of the prerequisites, you can run the following commands to get everything working.

# Ensure that you're using the correct version of Node
nvm use
# Install the PHP and Composer dependencies for all of the plugins, packages, and tools
pnpm install
# Build all of the plugins, packages, and tools in the monorepo
pnpm run build

At this point you are now ready to begin developing and testing. All of the build outputs are cached running pnpm run build again will only build the plugins, packages, and tools that have changed since the last time you ran the command.

Check out our development guide if you would like a more comprehensive look at working in our repository.

Repository Structure

  • Plugins: Our repository contains plugins that relate to or otherwise aid in the development of WooCommerce.
    • WooCommerce Core: The core WooCommerce plugin is available in the plugins directory.
  • Packages: Contained within the packages directory are all of the PHP and JavaScript provided for the community. Some of these are internal dependencies and are marked with an internal- prefix.
  • Tools: We also have a growing number of tools within our repository. Many of these are intended to be utilities and scripts for use in the monorepo, but, this directory may also contain external tools.

Reporting Security Issues

To disclose a security issue to our team, please submit a report via HackerOne here.

Support

This repository is not suitable for support. Please don't use our issue tracker for support requests, but for core WooCommerce issues only. Support can take place through the appropriate channels:

NOTE: Unfortunately, we are unable to honor support requests in issues on this repository; as a result, any requests submitted in this manner will be closed.

Community

For peer to peer support, real-time announcements, and office hours, please join our slack community!

Contributing to WooCommerce

If you have a patch or have stumbled upon an issue with WooCommerce core, you can contribute this back to the code. Please read our contributor guidelines for more information on how you can do this.