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
<?php | |
//* Debug redirect | |
add_filter( 'wp_redirect', function( $location ) { | |
if ( home_url() == $location ) { | |
print_r( debug_backtrace() ); | |
return false; | |
} |
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
<?php | |
//* Only turn on HTML5 for comment list | |
add_theme_support( 'html5', array( 'comment-list' ) ); |
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
# Replace [username] with your GitHub username (in both places). | |
# Replace [project]/[repository] with the project and repository where the issue resides. | |
# Replace [base] with the destination branch you wish to PR to (usually master or develop) | |
# And obviously, don't leave the [] brackets in there. | |
# Usage: | |
# @git-pr 999 features/999 |
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
<?php | |
/** | |
* This file controls the single view of the Recipe CPT | |
*/ | |
/** | |
* This is where you would put your custom mods. Just hook them (or unhook) to the proper location. | |
*/ | |
genesis(); //* <-- Just make sure this is at the END of the file. |
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
<?php | |
//** Redirect if not logged in | |
if ( ! is_user_logged_in() && 'wp-login.php' !== $pagenow ) { | |
wp_redirect( wp_login_url() ); | |
exit; | |
} |
NewerOlder