Skip to content

Instantly share code, notes, and snippets.

@nash-ye
Last active August 29, 2015 14:05
Show Gist options
  • Save nash-ye/053287d9b08312dbdbf7 to your computer and use it in GitHub Desktop.
Save nash-ye/053287d9b08312dbdbf7 to your computer and use it in GitHub Desktop.
A simple example to show the preferred way to load a Momtaz module.
<?php
add_action( 'after_momtaz_setup', 'sample_after_momtaz_setup', 11 );
/**
* Load all the necessary code after Momtaz setup.
*
* @return void
* @since 0.1
*/
function sample_after_momtaz_setup() {
Momtaz_Modules::load_module( 'loop-pagination' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment