ims_user_fields

Description

The “ims_user_fields” filter is used to add or remove custom fields to the user profiles.

A plugin (or theme) can modify the array with the code:

<?php add_filter( 'ims_user_fields', 'filter_function_name' ); ?>

The hook is located in the image-store/_inc/admin.php file.

Example

// Apply filter
function add_ims_user_fields( $fields ) {
	$fields['company'] = __( 'Company' ); 
	return $fields; 
}
add_filter('ims_user_fields', 'add_ims_user_fields');

Note:  $fields is an associative array.


Leave a Reply

Your email address will not be published. Required fields are marked *