Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #54684, comment 5


Ignore:
Timestamp:
12/25/2021 04:20:32 PM (2 years ago)
Author:
afragen
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #54684, comment 5

    initial v1  
    11The filter is only designed to modify the array of `$blocks` that are passed as a menu. It doesn't effect any visible component in the editor.
    22
    3 In addition to changing the passed array you can add to it. I have a small plugin that adds a **Log in / Log out** item to any displayed menu or navigation menu block.
     3In addition to changing the passed array you can add to it. I have a small plugin that adds a **Log in / Log out** item to any displayed menu or navigation menu block. Provided I got the conditional correct 😉
    44
    55https://github.com/afragen/login-logout-primary-menu-item