Changeset 3116085
- Timestamp:
- 07/11/2024 06:49:37 AM (4 weeks ago)
- Location:
- menu-item-types
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
menu-item-types/tags/1.5/readme.txt
r3115913 r3116085 26 26 $args = array( 27 27 'slug' => "my-custom-type", 28 'icon' => 'https //url-to-icon-file..svg',28 'icon' => 'https.svg', 29 29 'label' => __( 'My Custom Type', 'my-custom-type' ), 30 30 'field-group' => 'path/to/acf/field-group-array.php', 31 31 'render' => 'path/to/render/my-custom-render.php', 32 32 'callback' => function(){ 33 // add filter on 'mitypes_nav_menu_link_attributes' if you need it 33 // Use callback for customize your item 34 // youcan add filter on 'mitypes_nav_menu_link_attributes' if you need 34 35 } 35 36 ); -
menu-item-types/trunk/readme.txt
r3115912 r3116085 26 26 $args = array( 27 27 'slug' => "my-custom-type", 28 'icon' => 'https //url-to-icon-file..svg',28 'icon' => 'https.svg', 29 29 'label' => __( 'My Custom Type', 'my-custom-type' ), 30 30 'field-group' => 'path/to/acf/field-group-array.php', 31 31 'render' => 'path/to/render/my-custom-render.php', 32 32 'callback' => function(){ 33 // add filter on 'mitypes_nav_menu_link_attributes' if you need it 33 // Use callback for customize your item 34 // youcan add filter on 'mitypes_nav_menu_link_attributes' if you need 34 35 } 35 36 );
Note: See TracChangeset
for help on using the changeset viewer.