Plugin Directory

Changeset 3371798


Ignore:
Timestamp:
10/02/2025 01:10:39 PM (6 months ago)
Author:
maxpertici
Message:

MITYPES / tags 1.7 / readme

File:
1 edited

Legend:

Unmodified
Added
Removed
  • menu-item-types/tags/1.7/readme.txt

    r3371790 r3371798  
    7474And finally, you can work in the render with some variables.
    7575You 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`
    7890
    7991There are already additional plugins.
Note: See TracChangeset for help on using the changeset viewer.