wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_nav_menu_item_custom_fields › WordPress Action Hooks

Since5.4.0
Deprecatedn/a
do_action( 'wp_nav_menu_item_custom_fields', $item_id, $menu_item, $depth, $args, $current_object_id )
Parameters: (5)
  • (string) $item_id Menu item ID as a numeric string.
    Required: Yes
  • (WP_Post) $menu_item Menu item data object.
    Required: Yes
  • (int) $depth Depth of menu item. Used for padding.
    Required: Yes
  • (stdClass|null) $args An object of menu item arguments.
    Required: Yes
  • (int) $current_object_id Nav menu ID.
    Required: Yes
Defined at:
Codex:

Fires just before the move buttons of a nav menu item in the menu editor.





Source

do_action( 'wp_nav_menu_item_custom_fields', $item_id, $menu_item, $depth, $args, $current_object_id );