alleyinteractive/wp-match-blocks
Match WordPress blocks in the given content.
v4.3.0
491K downloads/mo
#4860 most downloaded on Packagist
alleyinteractive/wp-match-blocks
What this package is like to depend on
Last release 9 months ago
25 Nov 2025
Ships fairly regularly
a new release about every 5 months
Nearly every release is documented
notes for 10 of 10 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
10 releases · first in 2022
1 release in the last 12 months
see the full history below
Release timeline
10 releases · Aug 2022 to Nov 2025
2023
2024
2025
2026
Releases
latest 10-
v4.3.025 Nov 2025Release notes
Open source →Added
__experimental_xpathparameter for matching blocks by XPath queries.Matched_Blocksimplementation of theAlley\WP\Types\Serialized_Blocksinterface from the Type Extensions library.
-
v4.2.009 Apr 2025Release notes
Open source →Removed
- Reverted changes from version 4.1 to avoid conflicts with the Alleyvate plugin.
-
v4.1.009 Apr 2025Release notes
Open source →Added
__experimental_xpathparameter for matching blocks by XPath queries.Matched_Blocksimplementation of theAlley\WP\Types\Serialized_Blocksinterface from the Type Extensions library.
-
v4.0.001 Nov 2024 -
v3.1.002 Nov 2023 -
v3.0.022 Aug 2023Release notes
Open source →Changed
- "Classic" blocks, which have inner HTML but no block name, are no longer considered empty.
-
v2.0.106 Feb 2023Release notes
Open source →Fixed
- Missing
alleyinteractive/composer-wordpress-autoloaderdependency.
- Missing
-
v2.0.020 Dec 2022Release notes
Open source →Added
with_innerhtmlparameter for matching blocks by their inner HTML. Includes companion\Alley\WP\Validator\Block_InnerHTMLvalidator.has_innerblocksparameter for matching blocks by whether they have inner blocks. Includes companion\Alley\WP\Validator\Block_InnerBlocks_Countvalidator.is_validparameter for matching blocks by custom validation logic.CONTAINSandNOT CONTAINS(case-sensitive), andLIKEandNOT LIKE(case-insensitive) operators toattrsparameter.
Changed
- Passing a single block instance will return matches within its inner blocks.
Removed
- PHP 7.4 support.
-
v1.0.123 Aug 2022 -
v1.0.023 Aug 2022