Menu-Funktionen

Menu-Funktionen


Notice: Trying to get property 'url' of non-object in /var/www/l3s5457/html/wordpress/wordpress-dev/wp-content/plugins/bwp-themework/inc/bwp-media.inc.php on line 441

Notice: Trying to get property 'title' of non-object in /var/www/l3s5457/html/wordpress/wordpress-dev/wp-content/plugins/bwp-themework/inc/bwp-media.inc.php on line 441

Save the properties of a menu item or create a new one.

wp_update_nav_menu_item( int $menu_id, int $menu_item_db_id, array $menu_item_data = array() )



$menu_item_data = array(
        'menu-item-db-id'       => $menu_item_db_id,
        'menu-item-object-id'   => 0,
        'menu-item-object'      => '',
        'menu-item-parent-id'   => 0,
        'menu-item-position'    => 0,
        'menu-item-type'        => 'custom',
        'menu-item-title'       => '',
        'menu-item-url'         => '',
        'menu-item-description' => '',
        'menu-item-attr-title'  => '',
        'menu-item-target'      => '',
        'menu-item-classes'     => '',
        'menu-item-xfn'         => '',
        'menu-item-status'      => '',
    );



twWordPress - Powered by WordPress