• j0hann

    (@j0hann)


    So Far the Plugin works great!
    To finish it I would like to change the text of the button by using the

    /**
    * Change the Favorites Preset Button HTML (Unfavorited)
    */
    add_filter( 'favorites/button/text/default', 'custom_favorites_button_html' );
    function custom_favorites_button_html($html)
    {
    	return $html;
    }
    
    /**
    * Change the Favorites Preset Button HTML (Favorited)
    */
    add_filter( 'favorites/button/text/active', 'custom_favorites_button_html_active' );
    function custom_favorites_button_html_active($html)
    {
    	return $html;
    }

    Funktion. But somehow it is not working.

    Hope somebody can help
    Thanks

    • This topic was modified 7 years ago by j0hann.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • alasadi.dev

    (@ahmadrespondit)

    Hi,

    You’d need to add the following before (return $html;) :

    $html= “new text”;

    for both functions

Viewing 1 replies (of 1 total)

The topic ‘Custom Text Function not working’ is closed to new replies.