um_registration_user_role
Hook type
Filter
Description
Change user role on registration process
Parameters
$role
(string) User role
$submitted
(array) Registration data
Usage
<?php add_filter( 'um_registration_user_role', 'function_name', 10, 2 ); ?>
Examples
<?php add_filter( 'um_registration_user_role', 'my_registration_user_role', 10, 2 ); function my_user_register_submitted__email( $role, $submitted ) { // your code here return $role; } ?>
Change Log
Since: 2.0
Source
um_registration_user_role
is located in includes/core/um-actions-register.php::line 354