Last active
August 29, 2015 14:08
-
-
Save alessandrotesoro/ed11aa848c3205e6e2e1 to your computer and use it in GitHub Desktop.
WPRM Show all items within the menu for the wprm_menu shortcode.
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
/** | |
* Display All items within the menu. | |
* | |
* @return $args | |
*/ | |
function wprm_show_all_items($args) { | |
$args['posts_per_page'] = -1; | |
return $args; | |
} | |
add_filter( 'wprm_full_menu_args', 'wprm_show_all_items' ); | |
add_filter( 'wprm_menu_category_args', 'wprm_show_all_items'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment