Skip to content

Instantly share code, notes, and snippets.

@palimadra
Created August 21, 2015 09:30
Show Gist options
  • Save palimadra/47e07ddfa4a08c700803 to your computer and use it in GitHub Desktop.
Save palimadra/47e07ddfa4a08c700803 to your computer and use it in GitHub Desktop.
An example of adding simple hook in WordPress
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