Custom menu item for patreon tiers

Hello all,

I working on a website. And I try to make custom menu items for patreons.
Have tried to use this: in combination with a custom add_filter( 'wp_nav_menu_items' , 'custom_patreon_item' , 10, 2 ); in the function.php file.

But it is not working. The item is always there, looks like it is not connected to the plugin.

If you are using the latest version of that document…

… you may want to check the older version of the document since it has more details.

Such a situation as you describe may result from many causes including your conditionals not being accurate or catching the condition you want, some other things like Patreon related, user related functions not being ready when menus are prepared in your theme and so on.

Basically you need to experiment.