How to add custom hook in WordPress? asked Feb 11 in PHP by Pantycle_Genefanty (12.7k points) 0 like 0 dislike 16 views How I can to add custom hook for own theme in WordPress CMS? wordpress add hook to theme wordpress hook action plugin cms dev web Your comment on this question: Your name to display (optional): Email me at this address if a comment is added after mine:Email me if a comment is added after mine Privacy: Your email address will only be used for sending these notifications. Anti-spam verification: To avoid this verification in future, please log in or register. 1 Answer 0 like 0 dislike answered Feb 11 by Pantycle_Genefanty (12.7k points) You can do it in 3 simply steps: Add hook function in theme "functions.php" file and in it call hook action: function custom_hook_fnc() { do_action('custom_hook_title'); } Add hook function in needed place of theme template: <?php custom_hook_fnc(); ?> Add custom function in plugin or child theme and tell action for call it using hooks: function display_something() { echo '<p>Test display custom hook text.</p>'; } add_action('custom_hook_title', 'display_something'); Your comment on this answer: Your name to display (optional): Email me at this address if a comment is added after mine:Email me if a comment is added after mine Privacy: Your email address will only be used for sending these notifications. Anti-spam verification: To avoid this verification in future, please log in or register.