Skip to content

Instantly share code, notes, and snippets.

@nash-ye
Last active August 29, 2015 14:05
Show Gist options
  • Save nash-ye/4c68e037d440afcf7f95 to your computer and use it in GitHub Desktop.
Save nash-ye/4c68e037d440afcf7f95 to your computer and use it in GitHub Desktop.
A simple example to show the preferred way to change Momtaz current layout.
<?php
add_action( 'after_setup_theme', 'sample_after_setup_theme', 11 );
/**
* An action for 'after_setup_theme' hook.
*
* @return void
* @since 0.1
*/
function sample_after_setup_theme() {
Momtaz_Layouts::set_current_layout( '1c-fixed' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment