Skip to content

Commit b376d07

Browse files
committed
Allow / and - in hook names.
1 parent ef4e927 commit b376d07

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

phpcs.xml.dist

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@
2828
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
2929
<properties>
3030
<!-- Value: replace the function, class, and variable prefixes used. Separate multiple prefixes with a comma. -->
31-
<property name="prefixes" type="array" value="pwcc_,_pwcc_"/>
31+
<property name="prefixes" type="array" value="pwcc,_pwcc"/>
32+
</properties>
33+
</rule>
34+
<rule ref="WordPress.NamingConventions.ValidHookName">
35+
<properties>
36+
<property name="additionalWordDelimiters" value="/-"/>
3237
</properties>
3338
</rule>
3439
<rule ref="WordPress.WP.I18n">

0 commit comments

Comments
 (0)