Last active
August 29, 2015 14:05
-
-
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.
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 | |
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