Skip to content

Instantly share code, notes, and snippets.

@guillermorangel
Created August 9, 2013 15:39
Show Gist options
  • Save guillermorangel/6194631 to your computer and use it in GitHub Desktop.
Save guillermorangel/6194631 to your computer and use it in GitHub Desktop.
<?php
// Action Hook
add_action('action_name', 'your_function_name');
function your_function_name() {
// Your code
}
// Filter Hook
add_filter('filter_name', 'your_function_name');
function your_function_name( $variable ) {
// Your code
return $variable;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment