Callback name -> Excerpt):
+ * 4 - `um_followers_add_profile_bar()` displays Followers button.
+ * 5 - `add_profile_bar()` displays Messaging button.
+ *
+ * @param {array} $args User Profile data.
+ *
+ * @since 1.3.x
+ * @hook um_profile_navbar
+ *
+ * @example
Display some content before or after User Profile navigation bar.
+ * function my_um_profile_navbar( $args ) {
* // your code here
+ * echo $content;
* }
- * ?>
+ * add_action( 'um_profile_navbar', 'my_um_profile_navbar' );
*/
- do_action( 'um_profile_navbar', $args ); ?>
+ do_action( 'um_profile_navbar', $args );
+ ?>
Callback name -> Excerpt):
+ * 9 - `um_profile_menu()` displays User Profile menu.
+ *
+ * @param {array} $args User Profile data.
+ *
+ * @since 2.0
+ * @hook um_profile_menu
+ *
+ * @example
-
Callback name -> Excerpt):
+ * 10 - `um_profile_content_main()` displays `About` menu tab's content (v2).
+ * 10 - `UM()->frontend()->profile()->about()` displays `About` menu tab's content (v3).
+ * 10 - `um_profile_content_followers()` displays `Followers` menu tab's content.
+ * 10 - `um_profile_content_following()` displays `Following` menu tab's content.
+ * 10 - `um_profile_content_groups_list()` displays `User Groups List` menu tab's content.
+ * 10 - `profile_tab_content()` displays `My Jobs` menu tab's content.
+ * 10 - `profile_tab_dashboard_content()` displays `My Jobs Dashboard` menu tab's content.
+ * 10 - `content_messages()` displays `Messages` menu tab's content.
+ * 10 - `um_profile_content_private_content()` displays `Private Content` menu tab's content.
+ * 10 - `um_profile_content_{$tab['tabid']}` displays custom Profile Tabs content.
+ * 10 - `um_profile_content_reviews()` displays `Reviews` menu tab's content.
+ * 10 - `show_wall()` displays `Activity` menu tab's content.
+ *
+ * @param {array} $args User Profile data.
+ *
+ * @since 1.3.x
+ * @hook um_profile_content_{$nav}
+ *
+ * @example
Display some content in User Profile `main` nav content tab.
+ * function my_profile_content_main( $args ) {
* // your code here
+ * echo $content;
* }
- * ?>
+ * add_action( 'um_profile_content_main', 'my_profile_content_main' );
*/
- do_action("um_profile_content_{$nav}", $args);
-
+ do_action( "um_profile_content_$nav", $args );
/**
- * UM hook
+ * Fires for adding content in User Profile nav > subnav menu content tab.
+ * $nav profile menu tab key.
+ * $subnav profile sub-menu tab key.
*
- * @type action
- * @title um_profile_content_{$nav}_{$subnav}
- * @description Custom hook to display tabbed content
- * @input_vars
- * [{"var":"$args","type":"array","desc":"Profile form shortcode arguments"}]
- * @change_log
- * ["Since: 2.0"]
- * @usage add_action( 'um_profile_content_{$nav}_{$subnav}', 'function_name', 10, 1 );
- * @example
- * Callback name -> Excerpt):
+ * 10 - `um_bbpress_user_topics()` displays `Topics` submenu of bbPress tab's content.
+ * 10 - `um_bbpress_user_replies()` displays `Replies` submenu of bbPress tab's content.
+ * 10 - `um_bbpress_user_favorites()` displays `Favorites` submenu of bbPress tab's content.
+ * 10 - `um_bbpress_user_subscriptions()` displays `Subscriptions` submenu of bbPress tab's content.
+ * 10 - `profile_content_forums_topics()` displays `Topics` submenu of ForumWP tab's content.
+ * 10 - `profile_content_forums_replies()` displays `Replies` submenu of ForumWP tab's content.
+ * 10 - `profile_content_subscriptions()` displays `Subscriptions` submenu of ForumWP tab's content.
+ * 10 - `profile_content_bookmarks()` displays `Bookmarks` submenu of ForumWP tab's content.
+ * 10 - `profile_content_likes()` displays `Likes` submenu of ForumWP tab's content.
+ * 10 - `um_profile_content_friends_myfriends()` displays `My Friends` submenu of Friends tab's content.
+ * 10 - `um_profile_content_friends_friendreqs()` displays `Friends Requests` submenu of Friends tab's content.
+ * 10 - `um_profile_content_friends_sentreqs()` displays `Send Friends Requests` submenu of Friends tab's content.
+ * 10 - `um_profile_content_badges_my_badges()` displays `My badges` submenu of myCRED tab's content.
+ * 10 - `um_profile_content_badges_all_badges()` displays `All badges` submenu of myCRED tab's content.
+ * 10 - `get_bookmarks_content()` displays `All bookmarks with folders` submenu of User Bookmarks tab's content.
+ * 10 - `get_bookmarks_content_all()` displays `All bookmarks` submenu of User Bookmarks tab's content.
+ * 10 - `get_bookmarks_content_users()` displays `All bookmarked users` submenu of User Bookmarks tab's content.
+ * 10 - `user_notes_profile_tab()` displays `View Notes` submenu of User Notes tab's content.
+ * 10 - `get_add_note_form()` displays `Add Note` submenu of User Notes tab's content.
+ * 10 - `get_gallery_content()` displays `Albums` submenu of User Photos tab's content.
+ * 10 - `get_gallery_photos_content()` displays `Photos` submenu of User Photos tab's content.
+ * 10 - `um_profile_content_purchases()` displays `Purchases` submenu of Woocommerce tab's content.
+ * 10 - `um_profile_content_product_reviews()` displays `Product Reviews` submenu of Woocommerce tab's content.
+ *
+ * @param {array} $args User Profile data.
+ *
+ * @since 1.3.x
+ * @hook um_profile_content_{$nav}_{$subnav}
+ *
+ * @example
Display some content in User Profile `main` nav and `step2` subnav content tab.
+ * function my_profile_content_main_step2( $args ) {
* // your code here
+ * echo $content;
* }
- * ?>
+ * add_action( 'um_profile_content_main_step2', 'my_profile_content_main_step2' );
*/
- do_action( "um_profile_content_{$nav}_{$subnav}", $args ); ?>
-
+ do_action( "um_profile_content_{$nav}_$subnav", $args );
+ ?>
@@ -218,69 +245,51 @@ $description_key = UM()->profile()->get_show_bio_key( $args );