Advertisement
phpface

Untitled

Dec 5th, 2022 (edited)
746
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.79 KB | None | 0 0
  1. /**
  2.  *
  3.  * Add User Profile menu items
  4.  *
  5.  * @icon https://streamtube.marstheme.com/icons/
  6.  *
  7.  */
  8. add_filter( 'streamtube/core/user/profile/menu/items', function( $items ){
  9.     $items['my-link-1'] = array(
  10.         'title'         =>  esc_html__( 'My Link 1', 'streamtube-core' ),
  11.         'icon'          =>  'icon-cog',
  12.         'url'           =>  home_url( 'my-link-1' ),              
  13.         'priority'      =>  10,
  14.         'private'       =>  false
  15.     );
  16.  
  17.     $items['my-link-2'] = array(
  18.         'title'         =>  esc_html__( 'My Link 2', 'streamtube-core' ),
  19.         'icon'          =>  'icon-star',
  20.         'url'           =>  home_url( 'my-link-2' ),              
  21.         'priority'      =>  11,
  22.         'private'       =>  true
  23.     );    
  24.  
  25.     return $items;
  26.  
  27. }, 10, 1 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement