[Plugin: The Events Calendar] Posting events as default? (3 posts)

  1. fehnman
    Posted 6 years ago #


    I'd love to have the "is this post an event" radio button default to "yes". The contents of the event setup box should then also be visible, of course.

    Is there a way to do this?

    Thanks in advance (and for this great plugin)

  2. effendi13
    Posted 6 years ago #

    Hi fehman,

    I have opened an enhancement request on this.

    For faster results, go into the plugin editor, edit The Events Calendar, go to the-events-calendar.php and add this line:

    $_isEvent = 'yes';

    Just before the line:

    $isEventChecked = ( $_isEvent == 'yes' ) ? 'checked' : '';

    Disclaimer - This has not been fully tested and it will be over-written if you update the plugin. Modify at your own risk.

    EDIT: edited the code, I had written $_isEvent = 'no'; which was incorrect.

  3. fehnman
    Posted 6 years ago #

    Works great, thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic