Support

Home Forums Event Espresso Premium Will modifcations work with version upgrades?

Will modifcations work with version upgrades?

Posted: June 26, 2015 at 5:02 pm

Viewing 1 reply thread


Melissa Erlbaum

June 26, 2015 at 5:02 pm

Hi,

We need to upgrade our Event Espresso plugin. If we created a modification plugin for prior versions before using the given code:
<?php
/*
Plugin Name: Change default Espresso slug to something else
Description: Adjust Event Espresso slug from events to a different setting
*/

add_filter( ‘FHEE__EE_Register_CPTs__register_CPT__rewrite’, ‘my_custom_event_slug’, 10, 2 );
function my_custom_event_slug( $slug, $post_type ) {
if ( $post_type == ‘espresso_events’ ) {
$custom_slug = array( ‘slug’ => ‘trainings’ );
return $custom_slug;
}
return $slug;
}

Will that still apply? Or will the upgraded version (v4.7.4) automatically overwrite to our events page again instead of the trainings page where we want it?

Thanks!


Dean

June 29, 2015 at 12:32 am

Hi,

As you have done the modification in the correct way (via hooks and filters), updating the plugin will not affect the changes.

If any changes have been done directly to the EE plugin files, then these would be over written.

You *may* need to “flush” your permalinks after update if the events pages go to a 404. You can do this by going to Settings > Permalinks > and just pressing the save/update button.

Viewing 1 reply thread

The support post ‘Will modifcations work with version upgrades?’ 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