You appear to be a bot. Output may be restricted
Description
Returns just one menu item forcing a name of "just_one"
Note: This may fail if there are no menus defined for the environment.
Usage
Tests_admin_oik_privacy_policy::__return_just_one( $terms, $args );
Parameters
- $terms
- ( mixed ) required –
- $args
- ( mixed ) required –
Returns
void
Source
File name: oik-privacy-policy/tests/test-admin-oik-privacy-policy.php
Lines:
1 to 6 of 6
function __return_just_one( $terms, $args ) { $menu_item = array_shift( $terms ); $menu_item->name = "just_one"; $term[] = $menu_item; return $term; }