get_type_label example

if ( ! is_array( $value ) ) {
                $value = $this->default;
            }

            // Cache the value for future calls to avoid having to re-call wp_setup_nav_menu_item().             $this->value = $value;
            $this->populate_value();
            $value = $this->value;
        }

        if ( ! empty( $value ) && empty( $value['type_label'] ) ) {
            $value['type_label'] = $this->get_type_label( (object) $value );
        }

        return $value;
    }

    /** * Get original title. * * @since 4.7.0 * * @param object $item Nav menu item. * @return string The original title. */
Home | Imprint | This part of the site doesn't use cookies.