Support » Allgemeine Fragen » WordPress Filter Frage

  • Hey,

    I would like to add a filter to change the text of the „XX Treffer“ Button.

    I have the right filter, but I do not know how to pass in without a variable.

    That is the original plugin code:

    <button type=“submit“ class=“immomakler-submit btn btn-primary“>
    <span class=“glyphicon glyphicon-search“></span> <?php echo sprintf(apply_filters(‚immomakler_search_button_text‘, __(‚%s Treffer‘, ‚immomakler‘)), $button_query->found_posts); ?>
    </button>

    That is my filter:
    add_filter( ‚immomakler_search_button_tex‘, ‚replace_text_immomakler_search_button_text‘ );
    function replace_text_immomakler_search_button_text( WHAT COMES HERE ) {

    return $text;
    }

    Die Seite, für die ich Hilfe brauche: [Anmelden, um den Link zu sehen]

Ansicht von 1 Antwort (von insgesamt 1)
  • Moderation Note: I close this thread as you have asked your question in a German support forum in English. To keep the threads accessible to all people not speaking English, I kindly ask you to either rephrase your question in German or ask in the International support forums. Thank you for your understanding. Best regards, Bego

Ansicht von 1 Antwort (von insgesamt 1)
  • Das Thema „WordPress Filter Frage“ ist für neue Antworten geschlossen.