NO-Export

Home Forums Welcome! Pre-Sales Questions NO-Export

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1053965
    Enrico
    Guest

    I have a problem.
    Is it possible to deny to export calendar?
    Thank you!

    #1054080
    George
    Participant

    Hey Enrico,

    Do you mean that you want to hide the “Export Month’s Events” buttons on your site? If so, then yes, you can ensure these links never show up on any calendar view by adding the following code snippet to your theme’s functions.php file:


    if ( function_exists( 'tribe_get_events' ) ) {
    /**
    * Prevent calendar export links from showing anywhere on the front-end.
    *
    * @link http://theeventscalendar.com/?p=1053965
    */
    function tribe_support_1053965() {

    remove_action(
    'tribe_events_single_event_after_the_content',
    array( 'Tribe__Events__iCal', 'single_event_links' )
    );

    remove_action(
    'tribe_events_after_footer',
    array( 'Tribe__Events__iCal', 'maybe_add_link' )
    );
    }

    add_action( 'init', 'tribe_support_1053965' );
    }

    I hope this helps!

    — George

    #1076676
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘NO-Export’ is closed to new replies.