0

I am trying to display a different menu for the logged in users. The problem is that the classic wp_nav_menu_args filter does not work for block themes. Or I can't make it work.

Does anybody know how to do it?

1
  • the problem becomes a lot easier to solve if you remove the word menu and replace it with the word block, at that point there are multiple plugins that can hide/show things based on wether the user is logged in, as well as CSS based solutions that rely on the logged in html class WP adds to the body tag and the ability to add classes to blocks
    – Tom J Nowell
    Commented Jan 21 at 19:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.