PHP Classes

File: vendor/wp-coding-standards/wpcs/WordPress/Docs/NamingConventions/ValidHookNameStandard.xml

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Download Installed Plugin   vendor/wp-coding-standards/wpcs/WordPress/Docs/NamingConventions/ValidHookNameStandard.xml   Download  
File: vendor/wp-coding-standards/wpcs/WordPress/Docs/NamingConventions/ValidHookNameStandard.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Download Installed Plugin
Download a WordPress plugin as a ZIP archive
Author: By
Last change:
Date: Yesterday
Size: 1,104 bytes
 

Contents

Class file image Download
<?xml version="1.0"?> <documentation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://phpcsstandards.github.io/PHPCSDevTools/phpcsdocs.xsd" title="Valid Hook Name" > <standard> <![CDATA[ Use lowercase letters in action and filter names. Separate words using underscores. ]]> </standard> <code_comparison> <code title="Valid: lowercase hook name."> <![CDATA[ do_action( <em>'prefix_hook_name'</em>, $var ); ]]> </code> <code title="Invalid: mixed case hook name."> <![CDATA[ do_action( <em>'Prefix_Hook_NAME'</em>, $var ); ]]> </code> </code_comparison> <code_comparison> <code title="Valid: words separated by underscores."> <![CDATA[ apply_filters( <em>'prefix_hook_name'</em>, $var ); ]]> </code> <code title="Invalid: using non-underscore characters to separate words."> <![CDATA[ apply_filters( <em>'prefix\hook-name'</em>, $var ); ]]> </code> </code_comparison> </documentation>