Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change Favorites Text

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

  • Henry Wright
    Moderator

    @henrywright

    BuddyPress Like might not be what you want but I thought I’d point it out. You can customise the ‘like’ text via the WordPress admin area.


    Prince Abiola Ogundipe
    Participant

    @naijaping

    @gcskye,

    Try something like this:

    
    function multiple_translate_text( $translated_text ) {
    	switch ( $translated_text ) {
    		case 'Remove Favorite' :
    			$translated_text = __( 'Un Vouch' );
    			break;
                    case 'Favorite' :
    			$translated_text = __( 'Vouch' );
    			break;
                    case 'Favorites' :
    			$translated_text = __( 'Vouchs' );
    			break;
    }
    	return $translated_text;
    }
    add_filter( 'gettext', 'multiple_translate_text',20 );
    
    

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change Favorites Text’ is closed to new replies.
Skip to toolbar