Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
My Events link on User Profile Edit Page | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium My Events link on User Profile Edit Page

My Events link on User Profile Edit Page

Posted: March 31, 2013 at 7:21 am

Viewing 3 reply threads


Raedorah

March 31, 2013 at 7:21 am

I am using the My Events page and it works great. I had to add a custom function to my child theme’s functions.php file to show a “My Events” button. I did this, because I saw no way to implement the ability to have a link/button available to logged in users. Is this how you have to use the My Events with EE. Usability is important, so I want to know what you suggest.

`add_action( ‘show_user_profile’, ‘show_extra_profile_fields’, 11 );
add_action( ‘edit_user_profile’, ‘show_extra_profile_fields’, 11 );

function show_extra_profile_fields( $user ) { ?>
<a class="button orange" href="”>My Events`


Josh

April 1, 2013 at 10:11 am

Hi Carlene,

The WP user integration add-on adds a “My Events” sub menu item below the Profile menu item by default. Here’s a screenshot of what that looks like for a subscriber level user account:

screenshot

That’s not a bad idea to add a button to the user profile page in addition to the one we add. You can also add a link on the front-end of the site if you’re using the my events shortcode on a front facing WP page.


Raedorah

April 1, 2013 at 4:29 pm

Hey Josh,

I am using Theme My Login to get all login and registration forms on the front-end. Everything is working great, so I can keep the subscribers out of admin like you show as admin menu. I added the My Events link to the User Links in TML and placed a widget on those pages. I added the My Events button to the Edit Profile front end page generated by TML with the code above. Thanks for the clarification, I guess I’ve customized the best I can now:)

~C


Josh

April 1, 2013 at 6:18 pm

You’re welcome. :)

Viewing 3 reply threads

The support post ‘My Events link on User Profile Edit Page’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso - Staging Server