Changeset 55049
- Timestamp:
- 01/11/2023 11:50:01 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/nav-menus.php
r54865 r55049 58 58 * Filter to add custom menu items. 59 59 * 60 * @param array $items The menu items.61 * @param string $ typeThe object type (e.g. taxonomy).62 * @param string $object The object name (e.g. category).60 * @param array $items The menu items. 61 * @param string $object_type The object type (e.g. taxonomy). 62 * @param string $object_name The object name (e.g. category). 63 63 * @return array Menu items. 64 64 */ 65 public function filter_items( $items, $ type, $object) {65 public function filter_items( $items, $object_type, $object_name ) { 66 66 $items[] = array( 67 67 'id' => 'custom-1', 68 68 'title' => 'Cool beans', 69 'type' => $ type,69 'type' => $object_type, 70 70 'type_label' => 'Custom Label', 71 'object' => $object ,71 'object' => $object_name, 72 72 'url' => home_url( '/cool-beans/' ), 73 73 'classes' => 'custom-menu-item cool-beans',
Note: See TracChangeset
for help on using the changeset viewer.