user_profile_action_update_user
See example code below function user_profile_action_update_user($user_id, $args){ // code here update profile edit update. } add_action(‘user_profile_action_update_user’,’user_profile_action_update_user’, 90, 2);
See example code below function user_profile_action_update_user($user_id, $args){ // code here update profile edit update. } add_action(‘user_profile_action_update_user’,’user_profile_action_update_user’, 90, 2);
There is a static page assign for profile page under option page, you can check is the current page is profile page or others page by the following the code sample. add_action(‘wp_head’,’is_user_profile_page’); function is_user_profile_page(){ $user_profile_page_id = get_option(‘user_profile_page_id’); $current_page_id = get_the_ID();…
See example code below function user_profile_action_feed_post_bottom($post_id){ ?> Your HTML here <?php } add_action(‘user_profile_action_feed_post_bottom’,’user_profile_action_feed_post_bottom’);
See example code below function user_profile_action_feed_post_top($post_id){ ?> Your HTML here <?php } add_action(‘user_profile_action_feed_post_top’,’user_profile_action_feed_post_top’);
You can set custom default active nav by filter hook. function user_profile_filter_profile_nav_default($nav_default){ $nav_default = ‘about’; // nav index/id return $nav_default; } add_filter(‘user_profile_filter_profile_nav_default’,’user_profile_filter_profile_nav_default’); Default navs are feed about followers following
You can display follow button anywhere by shortcode, [user_profile_follow_button user_id=”1″]
If you are using Polylang plugin to support multi language on your site, you will need to user profile switch to user id and nav. please add following code to support navigate user. include_once( ABSPATH . ‘wp-admin’ ); //…
You can add your own contact method with exciting with filter hook as following function user_profile_contact_methods($methods){ $methods[‘contact_new’] = array( ‘title’=>’Contact New’, ‘icon’=>'<i class=”fa fa-vk” aria-hidden=”true”></i>’, ‘bg_color’=>’#cc181e’, ); return $methods; } add_filter(‘user_profile_contact_methods’,’user_profile_contact_methods’);
Please create a new page first and then paste the following shortcode. [user_profile_edit] Also please check User Profile Settings > Pages > User profile page > select the page you created for user profile edit. and then visit the page…
Please create a new page first and then paste the following shortcode. [user_profile] Also please check User Profile Settings > Pages > User profile page > select the page you created for user profile. and then visit the page ,…
You can add your own relations by filter hook as following function user_profile_user_relationship($relations){ $relations[‘new_relations’] = array( ‘title’=>__(‘New relations’, USER_PROFILE_TEXTDOMAIN), ‘icon’=>'<i class=”fa fa-facebook”></i>’, ); return $relations; } add_filter(‘user_profile_user_relationship’,’user_profile_user_relationship’);