Skip to content

Commit

Permalink
Admin bar: Increase priority of filter to run over all menu items
Browse files Browse the repository at this point in the history
The search icon & form is added with priority 9999, so this is 9999+1.
  • Loading branch information
ryelle committed Sep 9, 2024
1 parent 3b39f5f commit 79c26f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mu-plugins/blocks/global-header-footer/admin-bar.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
defined( 'WPINC' ) || die();

/* Actions & filters */
add_action( 'admin_bar_menu', __NAMESPACE__ . '\filter_admin_bar_links', 500 ); // 500 to run after all items are added to the menu.
add_action( 'admin_bar_menu', __NAMESPACE__ . '\filter_admin_bar_links', 10000 ); // 10000 to run after all items are added to the menu.
add_filter( 'show_admin_bar', __NAMESPACE__ . '\should_show_admin_bar' );

/**
Expand Down

0 comments on commit 79c26f0

Please sign in to comment.