Hide Recurring Events Fields

Home Forums Calendar Products Events Calendar PRO Hide Recurring Events Fields

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1197261
    johnpokeefe
    Participant

    Hi,
    I am using The Events Calendar Pro.

    My site is populated by registered users via the back end.
    Unfortunately, the way recurring events produces multiple event entries causes problems with automated tweets etc.

    I have decided that we do not need this feature for now.
    Is there a way in which I can simply hide the appropriate fields in the New Event template?

    (I have looked at a similar request that appears to focus on the Community Events plugin.)

    Many thanks,

    John

    #1197539
    Nico
    Member

    Hi there John,

    Thanks for getting in touch with us! I can help you out ๐Ÿ™‚

    Just paste the code below in your theme’s (or child theme’s) functions.php file:

    /* Tribe, remove recurrence from new event and edit event screens */
    function tribe_remove_recurrence ( ) {
    remove_action( 'tribe_events_date_display', array( 'Tribe__Events__Pro__Recurrence__Meta', 'loadRecurrenceData' ) );
    }
    add_action( 'admin_init', 'tribe_remove_recurrence' );

    Please let me know if this works for you,
    Have a great weekend,
    Nico

    #1197733
    johnpokeefe
    Participant

    Many thanks Nico,
    Code has worked as required.

    Most grateful – excellent support.

    Regards,

    John

    #1199009
    Nico
    Member

    Hey John,

    Stoked to hear this worked for you ๐Ÿ™‚

    Iโ€™ll go ahead and close out this thread, but if you need help with anything else please donโ€™t hesitate to create a new one and we will be happy to assist you.

    Best,
    Nico

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Hide Recurring Events Fields’ is closed to new replies.