Created
August 21, 2015 09:30
-
-
Save palimadra/47e07ddfa4a08c700803 to your computer and use it in GitHub Desktop.
An example of adding simple hook in WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('wp-head', 'my-custom-action'); | |
function my-custom-action() { | |
echo 'My custom action triggers here - in the head section'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment