Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Example for using pmpronm_prioritize_levels filter.
<?php
// Copy from below here...
/*
* Example for using pmpronm_prioritize_levels filter.
*
* Will try to apply menu for level_id 3, then 2, then 1.
* Afterwards will check the rest of the user's levels in
* an undefined order.
*/
function my_pmpronm_prioritize_levels( $prioritized_levels ) {
return array( 3, 2, 1 );
}
add_filter( 'pmpronm_prioritize_levels', 'my_pmpronm_prioritize_levels' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.