Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Set 'Add/Update post for this event?' to NO by default | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Set 'Add/Update post for this event?' to NO by default

Set 'Add/Update post for this event?' to NO by default

Posted: June 15, 2013 at 10:32 am

Viewing 2 reply threads


geektastic

June 15, 2013 at 10:32 am

Hi,

I’m referring to the same issue here http://staging.eventespresso.com/forums/2011/07/way-to-set-update-event-post-to-no-by-default/

I need to make this go to default, if not it will just delete my post content whenever I change other details in the event. I find even I sometimes forget to change the setting, let alone my clients. So I really need to make sure this is fixed at NO before I hand the website over to them.

Help ASAP please! Thanks.


Lovehistory

June 16, 2013 at 7:13 am

Hi,

If you open:

/includes/admin-files/event-management/edit_event_post.php

Go to line 20.

You’ll see:

$create_post = ‘Y’; //If a post was created previously, default to yes on the update post.

Change ‘Y’ to ‘N’

Whats happening here is ee checks a post was created previous, if it has Update should default to Y (yes), else default to N (no).

We’ve just changed it so either way it will always return N.

Remember, as this is a customization it will revert back to the normal way after each update. So you’ll need to do this each time ee is updated.


Sidney Harrell

  • Support Staff

June 18, 2013 at 12:09 am

hey guys,
We are actually adding a filter in 3.1.34, the next version to come out, on line 24 of that file:

$create_post = apply_filters('filter_hook_espresso_defalt_update_post_option', $create_post);

So if you want to, you can add that line into your current version, create a function in custom files, or your own plugin, that returns a value of “N” and add it to that filter. That way you won’t have to worry about having to reedit that file every time a new updated version comes out.

Viewing 2 reply threads

The support post ‘Set 'Add/Update post for this event?' to NO by default’ 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 - Staging Server