ualp_user_primary_array

Description

This filter hook allows you to change the primary data of user. The default user primary data are email, url, display_name.

If you want to remove any from default or add new field, this hook will allow you to change the fields.

 

Usage

add_filter( 'ualp_user_primary_array', 'my_primary_array' );
 
function my_primary_array( $get_dafault_user_key_array ) {
 
    // remove user_url from log
    if (($key = array_search('user_url', $get_dafault_user_key_array)) !== false) {
        unset($get_dafault_user_key_array[$key]);
    }
 
    //return array
    return $get_dafault_user_key_array;
}
Due to high download request and stop spamming we request you to please register and enjoy all free themes, plugins and extensions with out hassels.

CLICK HERE

to register or login and start downloading free products.
you will be redirected to registration page soon....

Download is Just A Click Away!

Enter your name and email address and subscribe with us to get latest updates.