Home / Admin / Update FES Vendor/Seller profile link
Duplicate Snippet

Embed Snippet on Your Site

Update FES Vendor/Seller profile link

Update a specific Seller profile link to a custom one

Code Preview
php
<?php
add_filter( 'fes_user_nicename_to_lower', 'prefix_fix_vendor_url', 10, 2 );
/**
 * Fix the vendor URL for a specific user.
 *
 * @param $nicename
 * @param $user
 * @return string
 */
function prefix_fix_vendor_url( $nicename, $user ) {
	if ( '[email protected]' === $user->user_email ) {
		return 'anonymous';
	}
	return $nicename;
}

Comments

Add a Comment