Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sniff to enforce presence of docblock above actions and filters #141

Open
johnbillion opened this issue May 15, 2019 · 0 comments
Open

Sniff to enforce presence of docblock above actions and filters #141

johnbillion opened this issue May 15, 2019 · 0 comments

Comments

@johnbillion
Copy link
Member

johnbillion commented May 15, 2019

A docblock should be present above all calls to the following:

  • do_action()
  • apply_filters()
  • do_action_ref_array()
  • apply_filters_ref_array()
  • do_action_deprecated()
  • apply_filters_deprecated()

A sniff which enforces this would be handy. Validating the docblock should probably be done separately as it's quite complex.

WPCS issue: WordPress/WordPress-Coding-Standards#424

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants