Created
October 5, 2013 07:48
-
-
Save intelliweb/6838027 to your computer and use it in GitHub Desktop.
Builder: Filter to assign a layout using layout ID
This file contains hidden or 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 | |
add_filter('builder_filter_current_layout', 'intw_builder_filter_current_layout'); | |
function intw_builder_filter_current_layout( $layout_id ) { | |
if ( is_single() && in_category( 'news' ) ) | |
return '4e5f997043d8e'; | |
return $layout_id; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment