woocommerce/woocommerce-sniffs
WooCommerce sniffs
2.0.0
7.9M downloads/mo
#1559 most downloaded on Packagist
woocommerce/woocommerce-sniffs
What this package is like to depend on
Last release 23 days ago
31 Jul 2026
Release timing varies
gaps range from 4 weeks to 1.9 years
Nearly every release is documented
notes for 16 of 17 stable releases
Nothing withdrawn
no release was ever pulled
9 years old
17 releases · first in 2017
2 releases in the last 12 months
see the full history below
Release timeline
17 releases · Dec 2017 to Jul 2026Releases
latest 17-
2.0.031 Jul 2026Release notes
Open source →Compatibility Notes
PHP Version: >= 7.2
This release updates the minimum required version of PHP from >=7.0 to >=7.2 due to updates in the WordPress Coding Standards dependencies. The release also updates the required versions of various dependencies to ensure we are up to date.
Rule deprecation notices
Due to the updated version of PHP_CodeSniffer, you may encounter deprecation warnings as a result of rule syntax that will not be permitted in PHP_CodeSniffer 4.0. You should update your definitions to prevent the warnings.
What's Changed
- Add sniff to flag expensive get_available_variations() usage in #46
- Allow cross-reference comments as valid hook documentation in #47
- Update wp-coding-standards/wpcs and related dependencies in #49
Full Changelog: 1.0.1...2.0.0
-
1.0.103 Sep 2025 -
1.0.029 Sep 2023Nothing published for this version
-
0.1.317 Feb 2022Release notes
Open source →Merge pull request #27 from woocommerce/tweak/comment-hooks
Tweak/comment hooks
-
0.1.221 Jan 2022 -
0.1.129 Jul 2021Release notes
Open source →Changed
- Allow dependencies to use patch releases, no more pinned dependencies.
Release notes
Open source →Changed
- Allow dependencies to use patch releases, no more pinned dependencies.
-
0.1.006 Aug 2020Release notes
Open source →Added
- Added
WooCommerce.Functions.InternalInjectionMethodsniff.
Changed
- Renamed
WooCommerce-Core.Commenting.CommentTagsSnifftoWooCommerce.Commenting.CommentTagsSniff. - Updated "wp-coding-standards/wpcs" to 2.3.0.
- Updated "dealerdirect/phpcodesniffer-composer-installer" to 0.7.0.
Release notes
Open source →Added
- Added
WooCommerce.Functions.InternalInjectionMethodsniff.
Changed
- Renamed
WooCommerce-Core.Commenting.CommentTagsSnifftoWooCommerce.Commenting.CommentTagsSniff. - Updated "wp-coding-standards/wpcs" to 2.3.0.
- Updated "dealerdirect/phpcodesniffer-composer-installer" to 0.7.0.
- Added
-
0.0.1007 Apr 2020Release notes
Open source →Changed
- Updated "wp-coding-standards/wpcs" to 2.2.1.
- Updated "dealerdirect/phpcodesniffer-composer-installer" to 0.6.2.
-
0.0.911 Nov 2019 -
0.0.816 Oct 2019Release notes
Open source →Changed
- Updated "wp-coding-standards/wpcs" to 2.1.1.
- Updated "phpcompatibility/phpcompatibility-wp" to 2.1.
Added
- White flag
wc_make_phone_clickable()onWordPress.Security.EscapeOutput.
-
0.0.723 Aug 2019Release notes
Open source →Changed
- Updated "wp-coding-standards/wpcs" to 2.1.
Added
- White flag
wc_query_string_form_fields()onWordPress.Security.EscapeOutput.
-
0.0.611 Mar 2019 -
0.0.520 Nov 2018Release notes
Open source →Changed
- Replaced "phpcompatibility/php-compatibility" to "phpcompatibility/phpcompatibility-wp".
-
0.0.419 Nov 2018Release notes
Open source →Changed
- Updated "wp-coding-standards/wpcs" to version 1.2.
Fixed
- Coding standards.
-
0.0.306 Nov 2018Release notes
Open source →Added
- Included "phpcompatibility/php-compatibility" 9.0 as a dependency.
- Included "dealerdirect/phpcodesniffer-composer-installer" 0.5 as dependency.
- New custom message for
@category.
Changes
- Updated ruleset.xml with default validate and escape functions, also including default rules.
-
0.0.222 Mar 2018 -
0.0.121 Dec 2017Release notes
Open source →Added
- Initial code to throw warnings when using
@author,@category,@licenseand@copyrighttags.
- Initial code to throw warnings when using