Support

Home Forums Event Espresso Premium Assign different WP_User (author) to an event

Assign different WP_User (author) to an event

Posted: February 15, 2013 at 4:13 am


Frank Grafenstein

February 15, 2013 at 4:13 am

As administrator I want to create a stubb/draft-event for further completion by my (regional) event managers, having an different WP_user-ID from mine.

How to assign a different author (WP_user) to an event? For standard and custom post_types there is a metabox ‘author’ enabling the selection of an appropriate author from an drop-down-list.
This would be fine for events too.

Please give me a code-example how to realize this e.g. via theme’s function.php, using
function add_meta_boxes() and
hook add_action( ‘add_meta_boxes’, ‘something_add_custom_box’ );

Thanks
Frank


Dean

February 18, 2013 at 1:12 am

Hi Frank,

There is no way to assign an event to a different user. The easiest way to do it would be to use a plugin such as User Switching and log in as that user, create the event and log out of that user.


Frank Grafenstein

February 18, 2013 at 2:33 am

OK, user switching makes no sense for me. The need to change wp_user-ID is restricted to a few cases only.
Would it create any conflicts if I would update this ID in the mysql-table ‘event_details’ manually?
🙂

Thanks
Frank


Dean

February 18, 2013 at 3:07 am

Hey Frank,

It shouldnt make any issues, but I would back up your database and test it locally first to make sure.


Frank Grafenstein

February 18, 2013 at 4:03 am

Ok. Thank you.


Frank Grafenstein

February 19, 2013 at 2:15 pm

Hi Dean,

sorry, you were wrong. Unfortunaly this advice was not a very helpful one:

Hence I change wp_user-ID in mysql-table ‘event_details’ manually, categories are not accessible for the new user.
Furthermore, event-listing does not work correctly (does not list updated event this way) …
It takes a while, to find that out.

Do not touch the wp_user if you do not know the database-structure (table-dependensies) in detail.

Frank.

The support post ‘Assign different WP_User (author) to an event’ 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