Closed wppunk closed 2 years ago
Add sniffs for WordPress hooks:
do_action
apply_filters
do_action_ref_array
apply_filters_ref_array
do_action_deprecated
apply_filters_deprecated
All these functions should be validated but the next rules:
@since
@deprecated
@param
@return
.
!
?
This filter(action) is documented in /path/to/file.php
hook
Also, for sniffs add the tests.
Description
Add sniffs for WordPress hooks:
do_action
apply_filters
do_action_ref_array
apply_filters_ref_array
do_action_deprecated
apply_filters_deprecated
All these functions should be validated but the next rules:
@since
tag@deprecated
tag@param
tag for each variable.@return
tag..
!
?
)This filter(action) is documented in /path/to/file.php
if it's duplicated hook to skip all other rules.hook
method.Also, for sniffs add the tests.