Guest User

Untitled

a guest
Mar 5th, 2024
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. function custom_modify_menu_objects($objects, $args) {
  2. remove_filter('wp_nav_menu_objects', 'hook_wp_nav_menu_objects');
  3.  
  4. // add your modifications here
  5.  
  6. add_filter('wp_nav_menu_objects', 'hook_wp_nav_menu_objects', 10, 2);
  7. return $objects;
  8. }
  9. add_filter('wp_nav_menu_objects', 'custom_modify_menu_objects', 20, 2);
Advertisement
Add Comment
Please, Sign In to add comment