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


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

  • Support Staff

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

  • Support Staff

April 1, 2013 at 6:18 pm

You’re welcome. 🙂

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