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’ );
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.
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?
🙂
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.
Viewing 5 reply threads
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.
Support forum for Event Espresso 3 and Event Espresso 4.