[wp-trac] [WordPress Trac] #54684: Add ability to filter navigation block items (was: Add ability to filter blocks in WP_Block_List)

WordPress Trac noreply at wordpress.org
Sat Jan 15 04:41:41 UTC 2022


#54684: Add ability to filter navigation block items
-------------------------+-----------------------------
 Reporter:  afragen      |       Owner:  (none)
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  6.0
Component:  Menus        |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  administration
-------------------------+-----------------------------
Changes (by afragen):

 * status:  closed => reopened
 * version:  5.5 => trunk
 * milestone:   => 6.0
 * resolution:  reported-upstream =>


Old description:

> There currently doesn't seem to be a simple way to add/modify blocks that
> are produced by the `class WP_Block_List`. Blocks passed to this class
> are used in menus in `wp-includes/blocks/navigation.php`.
>
> A filter in the constructor would be a nice addition.
>
> Naming is hard.

New description:

 There currently doesn't seem to be a simple way to add/modify blocks that
 are produced by the `class WP_Block_List`. Blocks passed to this class are
 used in menus in `wp-includes/blocks/navigation.php`.

 A filter in the constructor would be a nice addition.

 Naming is hard.

 UPDATED: Now adds filter to navigation block items after creation not
 during creation of the WP_Block_List.

--

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54684#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list