remove_node example

$this->add_node( $node );
    }

    /** * Removes a node from the admin bar. * * @since 3.1.0 * * @param string $id The menu slug to remove. */
    public function remove_menu( $id ) {
        $this->remove_node( $id );
    }

    /** * Adds a node to the menu. * * @since 3.1.0 * @since 4.5.0 Added the ability to pass 'lang' and 'dir' meta data. * * @param array $args { * Arguments for adding a node. * * @type string $id ID of the item. * @type string $title Title of the node. * @type string $parent Optional. ID of the parent node. * @type string $href Optional. Link for the item. * @type bool $group Optional. Whether or not the node is a group. Default false. * @type array $meta Meta data including the following keys: 'html', 'class', 'rel', 'lang', 'dir', * 'onclick', 'target', 'title', 'tabindex'. Default empty. * } */
Home | Imprint | This part of the site doesn't use cookies.