Changeset 3371798
- Timestamp:
- 10/02/2025 01:10:39 PM (6 months ago)
- File:
-
- 1 edited
-
menu-item-types/tags/1.7/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
menu-item-types/tags/1.7/readme.txt
r3371790 r3371798 74 74 And finally, you can work in the render with some variables. 75 75 You have two variables available: 76 * $item which is the WP_Post of the menu item, with which you can, for example, retrieve custom field data. 77 * $args which is the array of arguments used during the generation of the menu item. 76 77 ` 78 79 80 // $item is the WP_Post of the menu item, with which you can, for example, retrieve custom field data. 81 82 $id = get_field( 'acf-slug', $item->ID ) ; 83 84 85 // $args is an object containing the complete configuration of the wp_nav_menu() call, 86 // including the current menu (WP_Term), classes, IDs, wrappers, depth, walker, menu location, etc. 87 // More info : https://developer.wordpress.org/reference/functions/wp_nav_menu/ 88 89 ` 78 90 79 91 There are already additional plugins.
Note: See TracChangeset
for help on using the changeset viewer.