Skip to content

Files

Latest commit

 

History

History
14 lines (8 loc) · 689 Bytes

WordPress.NamingConventions.ValidHookName.md

File metadata and controls

14 lines (8 loc) · 689 Bytes

Pattern: Invalid WP hook name

Issue: -

Description

Use lowercase letters in action and filter names. Separate words via underscores.

This rule is only testing the hook invoke functions as when using add_action/add_filter you can't influence the hook name. Hook names invoked with do_action_deprecated() and apply_filters_deprecated() are ignored.

Further Reading