This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'wpum_get_registration_fields', 'my_wpum_get_registration_fields' ); | |
| function my_wpum_get_registration_fields( $fields ) { | |
| if ( isset( $fields['role'] ) ) { | |
| $fields['role']['priority'] = - 1; | |
| } | |
| return $fields; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'wpum_admin_registration_confirmation_email_headers', function() { | |
| return array('Content-Type: text/html; charset=UTF-8'); | |
| }); | |
| add_filter('wpum_admin_registration_confirmation_email_message', function( $message, $user ) { | |
| $blogname = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); | |
| $message = sprintf( esc_html__( 'You have a new member application for the %s:', 'wp-user-manager' ), $blogname ) . "<br><br>"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function my_wpum_add_profile_tab_link( $tabs ) { | |
| $tabs['google'] = [ | |
| 'name' => esc_html( 'Google' ), | |
| 'priority' => 2, | |
| ]; | |
| return $tabs; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // This file should live in | |
| // wp-content/mu-plugins/wpum-templates/profiles/bookings.php | |
| // Output your custom content |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'wpum_directory_search_meta_keys', function( $keys ) { | |
| $keys[] = 'description'; | |
| return $keys; | |
| } ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'wpum_get_registered_profile_tabs', 'my_wpum_get_registered_profile_tabs' ); | |
| function my_wpum_get_registered_profile_tabs( $tabs ) { | |
| $tabs['about']['name'] = esc_html( 'About Me' ); | |
| $tabs['posts']['name'] = esc_html( 'My Posts' ); | |
| return $tabs; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( 'account_page_form_fields', function ( $fields ) { | |
| if ( ! wp_verify_nonce( $_POST['account_update_nonce'], 'verify_account_form' ) ) { | |
| return $fields; | |
| } | |
| /** | |
| * Changed this array to the field keys (wpum_ is the prefix) | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function wpum_account_change_settings_tab_name( $tabs ) { | |
| $tabs['settings']['name'] = esc_html( 'Profile' ); | |
| return $tabs; | |
| } | |
| add_filter( 'wpum_get_account_page_tabs', 'wpum_account_change_settings_tab_name' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function wpum_account_tab_changes( $tabs ) { | |
| $tabs['settings']['name'] = esc_html( 'User Details' ); | |
| $user = wp_get_current_user(); | |
| if ( in_array( 'subscriber', (array) $user->roles ) ) { | |
| unset( $tabs['institution-detail'] ); | |
| $tabs['individual-detail']['name'] = esc_html( 'Additional Information' ); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Add this file to the wp-content/mu-plugins directory. The mu-plugins directory might need to be created. | |
| /** | |
| * Send the new user registered email to other email addresses | |
| */ | |
| add_filter( 'wpum_admin_registration_confirmation_email_recipient', function ( $to_email ) { | |
| return $to_email . ',someotheremail@gmail.com'; | |
| } ); |