Skip to:
Content
Pages
Categories
Search
Top
Bottom

Replacing Favorite Text


  • areynoldsskm
    Participant

    @areynoldsskm

    Hey all, need some help with changing the favorite button text to Favourite (Canadian Spelling)

    So far I’ve tried:
    Switching to Canadian English in WP core, dosent change the button

    Js find and replace, has a visible delay

    functions.php code per this topic: https://bbpress.org/forums/topic/change-text-in-bbpress-subscribe-favorite-reply/

    /*BBPRESS Favourite Filter*/
    function rkk_subscribe_link() {
      $args['Favorite'] = esc_html__( 'Favourite',   'rkk' );
      return $args;
    }
     add_filter('bbp_before_get_topic_favorite_link_parse_args', 'rkk_subscribe_link' );
    

    Anyone able to change this?

Viewing 3 replies - 1 through 3 (of 3 total)

  • Robin W
    Moderator

    @robin-w

    $args['Favorite'] should be$args['favorite'] no capital F !

    so

    /*BBPRESS Favourite Filter*/
    function rkk_subscribe_link($args) {
      $args['favorite'] = esc_html__( 'Favourite',   'rkk' );
     $args['favorited'] = esc_html__( 'Unfavourite',   'rkk' );
      return $args;
    }
    add_filter('bbp_before_get_topic_favorite_link_parse_args', 'rkk_subscribe_link' );	

    areynoldsskm
    Participant

    @areynoldsskm

    Thanks @robin-w, bizzare the text is capitalized.

    Thanks again


    Robin W
    Moderator

    @robin-w

    🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar