Support

Home Forums Event Espresso Premium See event revision history in WordPress?

See event revision history in WordPress?

Posted: March 26, 2018 at 11:40 am

Viewing 3 reply threads


dougintexas

March 26, 2018 at 11:40 am

I’ve looked around and I’m not seeing where I can view who has made what updates and when. I’m thinking this has to be somewhere but I’m not seeing it even if I look under Screen Options.


Josh

  • Support Staff

March 26, 2018 at 12:13 pm

Hi Doug,

The Event Espresso espresso_events custom post type doesn’t actually support revision history.


dougintexas

March 26, 2018 at 2:14 pm

Thanks Josh. Any chance that could happen in the future (I know you all have a ton of feature requests)? My client has admin access (they need it) and one of the event pages was displaying content it shouldn’t have. I’d like to be able to ID when mistakes get made so I can teach the users the right way to do things.


Josh

  • Support Staff

March 26, 2018 at 3:08 pm

Hi Doug,

This is not going to happen as long as the technical gotchas continue with the way Event Espresso moves its post type editor out of the native CPT route.

For your purposes, you could activate Post Revisions on your site via a filter, e.g. add this code to a functions plugin:

add_filter( 'FHEE__EE_Register_CPTs__get_CPTs__cpts', 'my_ee_cpt_add_revision_support' );
function my_ee_cpt_add_revision_support( $cpt_registry_array ) {
    if ( isset( $cpt_registry_array['espresso_events'] ) ) {
        $cpt_registry_array['espresso_events']['args']['supports'][] = 'revisions';
    }
    return $cpt_registry_array;
}

You’ll then be able to see each change to the title and post content via WP revisions. Please note the UI links to get out of Revisions will leave you stuck in a loop, so I wouldn’t recommend leaving the filter function activated for day-to-day use.

Viewing 3 reply threads

The support post ‘See event revision history in WordPress?’ 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