Skip to content
No results
  • Plugins
  • Blog
  • Support
    • Forum
    • Create Support Ticket
    • Documentations
    • Affiliates
    • Join Facebook Group
  • Account
    • License keys
    • Cart
    • Checkout
    • Orders
    • Downloads
  • Search
  • PickPlugins
  • Post Gird
  • Product Slider for WooCommerce
PickPlugins logo
  • Plugins
  • Blog
  • Support
    • Forum
    • Create Support Ticket
    • Documentations
    • Affiliates
    • Join Facebook Group
  • Account
    • License keys
    • Cart
    • Checkout
    • Orders
    • Downloads
  • Search
  • PickPlugins
  • Post Gird
  • Product Slider for WooCommerce
PickPlugins logo

Filter Hook – user_profile_filter_profile_navs

  • PickPluginsPickPlugins
  • February 9, 2017
  • Filter Hooks

By default there 4 default nav’s on user profile navigation.

feed
about
followers
following

 

These navigation is filterable and actionable to display nav’s content, we used following filter hook for display navs

apply_filters('user_profile_filter_profile_navs', $navs);

 

how to add extra nav’s?

Please see the example code you can add extra navigation by filter hook

add_filter('user_profile_filter_profile_navs','user_profile_filter_profile_navs_extra_nav');

function user_profile_filter_profile_navs_extra_nav($navs){

 $navs['extra_nav'] = array('title' => __('Extra nav', 'user-profile'),);

 return $navs;
}

 

Display content for “extra_nav”

 add_action('user_profile_action_nav_content_extra_nav','user_profile_filter_profile_navs_extra_nav_content', 10, 2);

function user_profile_filter_profile_navs_extra_nav_content($user_id, $thisuser){

 ob_start();
 ?>
 <div class="extra-nav-html">
 Extra HTML.
 <br>
 <?php
 echo 'User id:'. $user_id;
 ?>
 </div>
 <?php
 echo ob_get_clean();

}

User profile Plugin

 

How to remove existing navs

you can remove any existing nav by filter hook as follows

add_filter('user_profile_filter_profile_navs','user_profile_filter_profile_navs');

function user_profile_filter_profile_navs($navs){
  unset($navs['feed']);
  return $navs;
}

 

Sorting/priority of navs

You can set custom sorting or priority of navs, see the example code bellow

function user_profile_filter_profile_navs_extra($navs){

  $navs['followers']['priority'] = 5;

  return $navs;
}

add_filter('user_profile_filter_profile_navs', 'user_profile_filter_profile_navs_extra');

 

Change navs title

You can change nav name by filter hook as follows

function user_profile_filter_profile_navs_extra($navs){

  $navs['followers']['title'] = __('Followers new', 'user-profile');

  return $navs;
}

add_filter('user_profile_filter_profile_navs', 'user_profile_filter_profile_navs_extra');

user profile plugin

 

Add navs title icons

You can display icon for navs title by filter hook, please see the bellow code we are displaying font-awesome icon

function user_profile_filter_profile_navs_extra($navs){

  $navs['followers']['title'] = '<i class="icofont icofont-heart"></i> '.__('Followers new', 'user-profile');

  return $navs;
}

add_filter('user_profile_filter_profile_navs', 'user_profile_filter_profile_navs_extra');

 

User profile Plugin

Documentation

Shortcodes – User Profile
  • Shortcode – user_profile
  • Shortcode – user_profile_edit
  • Shortcode – user_profile_follow_button
Action Hooks
  • user_profile_action_before_user_profile
  • Action Hook – user_profile_action_user_profile_main
  • user_profile_action_after_user_profile
  • user_profile_action_before_profile_header
  • Action Hook – user_profile_action_profile_header
  • user_profile_action_after_profile_header
  • user_profile_action_before_profile_navs
  • user_profile_action_after_profile_navs
  • user_profile_action_before_profile_content
  • user_profile_action_after_profile_content
  • user_profile_action_user_profile_edit_main
  • user_profile_action_feed_post_top
  • user_profile_action_feed_post_bottom
  • user_profile_action_update_user
Filter Hooks
  • Filter Hook – user_profile_filter_profile_navs
  • Filter Hook – user_profile_filter_user_avatar
  • Filter Hook – user_profile_user_gender
  • Filter Hook – user_profile_user_relationship
  • Filter Hook – user_profile_contact_methods
  • Filter Hook – user_profile_filter_user_name
  • user_profile_filter_profile_nav_default
FAQ – User Profile
  • How to create user profile page ?
  • How to create user profile edit page ?
  • Language Switcher for Polylang customization ?
  • How to check user profile page?

Copyright © 2025 by PickPlugins

Manage Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
View preferences
{title} {title} {title}