Well, I assumed it would install like a normal WordPress plugin, but it seems I was wrong.
I just spent a while looking through their code but unfortunately I’m completely lost. The way they’ve hidden menu items is very complicated… I’m sure they have reasons for how they’ve done it, but it seems like it could be done with core WP filters instead.
The only idea I have is to do something like this:
add_action( 'wp', function() {
$show_menu_items = Dap_Config::get("SHOW_PROT_MENULINKS");
if ( 'N' === $show_menu_items ) {
remove_filter( 'nav_menu_item_title', 'generate_dropdown_icon_to_menu_link', 10, 4 );
}
} );
I have no idea if it will work or not, but it basically removes the filter that GeneratePress uses to add the dropdown arrows if that option is set to no.