Apps Ballance Cash_2 Chat Checkout Click Code Cog_Wheels Compose_email Conference Contacts Earth Edit_File_1_ Email Email_2 File Folder_2 Gift Group Group_2 Help ID ID_2 Key Keys Laptop_Store Like_1_ Link Lock Log_Out Map Marketing Mobile_UI Navigation POS Partnership Profile Safe_2 Search_User Secure_Files Settings Share Shield Shield_2 Shopping_Cart Support_Male Trash Type_pin User_female User_male logo copy

How to customize the fields output on profile page

Iain Poulson avatar
Iain Poulson Last updated on March 6, 2021

wpum_field_ouput_callback_function filter passes 3 arguments, the original callback function used for the field, the field object and the value. See here for the source code

Example field output customization:

The filter can be used to use a custom function to modify the output of the field within profiles pages. By default WPUM uses separate functions for each field output.

By using the filter, you can tell WPUM to use another function to print the field output on the profile page. In the following example, I’m modifying the output of the Website field, by checking it’s name.
Other methods can be used to determine the field.


function wpum_custom_field_output( $func_name, $field, $value ) {

	if ( $field->get_name() == 'Website' ) {
		return 'my_custom_function';

	return $func_name;

add_filter( 'wpum_field_ouput_callback_function', 'wpum_custom_field_output', 10, 3 );

function my_custom_function( $field, $value ) {
	return '<i><a href="'. esc_url( $value ) .'" target="_blank" rel="noopener noreferrer">'. esc_html( $value ) .'</a></i>';
WP User Manager logo

Get Started with the Best WordPress Membership Plugin Today

Connect, Manage and Build your Membership Site

Need more help?

If you still didn't find an answer you can always contact us

Submit a ticket