Skip to content

Latest commit

 

History

History
77 lines (64 loc) · 1.5 KB

user-profile.md

File metadata and controls

77 lines (64 loc) · 1.5 KB

User Profile

Code

{% tabs %} {% tab title="Function" %}

wponion_admin_bar( 
    array($title, $href, $id, $meta, $parent, $group, $submenus)
);

{% endtab %}

{% tab title="Example" %}

wponion_admin_bar(
  array(
    array(
      'title' => 'My_Menu_Title',
      'href' => 'https://mycustomlink.com',
      'id' => 'my-custom-html-id',
      'parent' => array(
        'children' => array(),
      ),
      'group' => array(),
      'meta' => array(
        'title' => 'my-custom-meta-title',
        'class' => 'my-custom-meta-class',
        'id' => 'my-custom-meta-id',
        'target' => 'self',
        'onclick' => NULL,
        'rel' => NULL,
        'tab' => NULL,
        'lang' => NULL,
        'dir' => NULL,
      ),
      'submenus' => array(
        array(
          'title' => 'My_Menu_Title',
          'href' => 'https://mycustomlink.com',
          'id' => 'my-custom-html-id',
          'meta' => array(
            'title' => 'my-custom-meta-title',
            'class' => 'my-custom-meta-class',
            'id' => 'my-custom-meta-id',
            'target' => 'self',
            'onclick' => NULL,
            'rel' => NULL,
            'tab' => NULL,
            'lang' => NULL,
            'dir' => NULL,
          ),
        ),
      ),
    ),
  ),
);

{% endtab %} {% endtabs %}

Output

Tutorial

{% embed url="https://youtu.be/FVqzKAUsM68" %}

Project Usage

Notes

There are currently no extra notes for this operation.