Problem with add_filter

Home Forums Calendar Products Events Calendar PRO Problem with add_filter

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1346577
    Yves
    Participant

    Hello

    I want change something at the current event displaying.
    So I try with this function (in my child_theme function.php file) to hide the displaying of “Réccurent évènements” in a list :

    add_filter( ‘fct_change_affic_recurent_event’, ‘tribe_events_recurrence_tooltip’,100,1);
    function fct_change_affic_recurent_event( $post_id = null ) {

    if ( empty( $post_id ) ) {
    $post_id = get_the_ID();
    }
    $tooltip = ”;
    if ( tribe_is_recurring_event( $post_id ) ) {
    }
    return $tooltip;

    }

    But this don’t change anything here : https://testcoteauxpais.org/events/?_sft_tribe_events_cat=soiree
    Can you give me an advise ?

    Thank for your help.
    Sorry for my bad english.
    Have a good day,

    Yves

    #1347664
    Cliff
    Member

    Hi, Yves.

    That filter is available from Line 770 of /wp-content/plugins/events-calendar-pro/src/functions/template-tags/general.php

    I can’t help you with the custom code, but your hook and function are backwards. Please change to:

    add_filter( 'tribe_events_recurrence_tooltip', 'fct_change_affic_recurent_event', 100, 1 );

    Please let me know how this goes for you.

    #1358392
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

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