custom notice not working

Home Forums Welcome! Pre-Sales Questions custom notice not working

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1094562
    Ciel
    Guest

    Hi, I’m using the snippet on changing the notice message when the event has passed. Here’s the code:
    add_filter( ‘tribe_events_the_notices’, ‘customize_notice’, 10, 2 );
    function customize_notice( $html, $notices ) {
    //If text is found in notice, then replace it
    if( stristr( $html, ‘This イベント has passed.’ ) ) {
    //Customize the message as needed
    $html = str_replace( ‘This イベントhas passed.’, ‘This event has passed and add a link.’, $html );
    }

    return $html;
    }

    Could it be because my wordpress language is Japanese? Someone enlighten me.

    #1094614
    George
    Participant

    Hey Ciel,

    Thank you for reaching out. These forums here are our “Pre-sales Questions” forums, so we unfortunately cannot field technical support questions here.

    It doesn’t currently appear that you have a premium license with us. If this is wrong, and you do have a premium license with us, then apologies for my misunderstanding!

    However, in that case please log into the account on this site that has your premium license, and then post this question in a premium support forum.

    If you indeed do not have a premium license, then please post your question in our free support forums here → http://wordpress.org/plugins/the-events-calendar

    We check those forums a bit more than once per week, so hopefully we will be able to get to your question there.

    Thank you,
    George

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘custom notice not working’ is closed to new replies.