Advertisement
phpface

Untitled

Apr 7th, 2023
671
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. add_filter( 'streamtube/core/user/profile/menu/items', function( $menu_items ){
  2.  
  3.     $menu_items['events']['priority']  = -1;
  4.  
  5.     uasort( $menu_items, function( $item1, $item2 ){
  6.         return $item1['priority'] <=> $item2['priority'];
  7.     } );
  8.  
  9.     return $menu_items;
  10. }, 10, 1 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement