Skip to content

Instantly share code, notes, and snippets.

@braddalton
Forked from NicktheGeek/conditional-actions.php
Created February 28, 2013 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save braddalton/5058860 to your computer and use it in GitHub Desktop.
Save braddalton/5058860 to your computer and use it in GitHub Desktop.
<?php
add_action( 'genesis_before', 'child_conditional_actions' );
function child_conditional_actions() {
if( /**insert your conditional statements here */ ) {
//put your actions here
}
//you could add additional conditional statements as needed here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment