jetpack_sso_new_user_override

jetpack_sso_new_user_override

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.4.2

apply_filters('jetpack_sso_new_user_override') is found 1 times:

  • /vendor/automattic/jetpack-connection/src/sso/class-helpers.php line 80
    		 *
    		 * @param bool|string $new_user_override Allow users to register on your site with a WordPress.com account. Default to false.
    		 * @param object|null $user_data         An object containing the user data returned from WordPress.com.
    		 */
    		$role = apply_filters( 'jetpack_sso_new_user_override', $new_user_override, $user_data );
    
    		if ( $role ) {
    			if ( is_string( $role ) && get_role( $role ) ) {
    				return $role;
    			} else {
    				return get_option( 'default_role' );