Created
December 8, 2015 14:26
-
-
Save champsupertramp/20bda2c0575eb9579bdc to your computer and use it in GitHub Desktop.
Ultimate Member - Add custom tab & section
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add profile content for 'Pages' tab's section | |
* @param Array $args | |
* @hook Action 'um_profile_content_pages' | |
*/ | |
function um_custom_add_profile_content_pages( $args ){ | |
echo "Hello World"; | |
} | |
add_action('um_profile_content_pages','um_custom_add_profile_content_pages',10,1); | |
?> |
hello @champsupertramp ,
would you help me to display all the custom posts in a custom profile tab? I am trying to find but I fail...
Thanks in advance
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi and thank you for wonderful support system here!
I am running Ultimate Member WP plugin and am trying to create a custom tab called Faves for my user profile pages where only certain user roles I determine can view
it:
I paste this code in the theme's functions.php, and the Faves tab shows up OK, but for everybody. Even when I enter user role "member"
and changing the others to 'custom' => false, nothing happens. It seems the role conditions part of the code is not good.
Please help me determine why.
Thanks very much in advance!