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' );
@laurenhagan0306

This comment has been minimized.

Copy link

@laurenhagan0306 laurenhagan0306 commented Mar 28, 2021

This recipe is included in the blog post on "Using the Nav Menus Add On in a Multiple Memberships Per User Environment" at Paid Memberships Pro here: https://www.paidmembershipspro.com/nav-menus-add-on-mmpu-multiple-memberships-per-user/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment