Support

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

Reply To: See event revision history in WordPress?

Author Replies
Josh # Posted on 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.

Do NOT follow this link or you will be banned from the site!