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)
Ansicht von 1 Antwort (von insgesamt 1)
- Das Thema „WordPress Filter Frage“ ist für neue Antworten geschlossen.