White Labelling WP Fusion

#Overview

There may be cases where you want to rename WP Fusion in the WordPress admin, for example on a client website or as part of a WaaS.

All of WP Fusion’s strings can be modified using the gettext filter. The texdomain for WP Fusion is wp-fusion.

The textdomain for the addon plugins can be found at the top of each plugin’s main PHP file (for example wp-fusion-logins for the Logins Addon).

#Example

In this example we’ve renamed WP Fusion to “CRM Integration”:

The code snippet is:

function white_label_wp_fusion( $translation, $text, $domain ) {

	if ( 'wp-fusion' === $domain ) {
		$translation = str_replace( 'WP Fusion', 'CRM Integration', $translation );
	}

	return $translation;
}

add_filter( 'gettext', 'white_label_wp_fusion', 10, 3 );