Created
January 8, 2013 15:07
-
-
Save brichards/4484483 to your computer and use it in GitHub Desktop.
Layout Override
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 | |
// Force a one column layout if the user is not logged in | |
add_filter( 'get_theme_layout', 'my_layout_override' ); | |
function my_layout_override( $layout ) { | |
if ( ! is_user_logged_in() ) | |
$layout = 'layout-one-col'; | |
return $layout; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment