This file contains 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_privacy_text', 'wpum_change_message', 10, 3 ); | |
function wpum_change_message( $text, $privacy_url, $blogname ) { | |
return sprintf( __( 'I have read and accept the <a href="%1$s" target="_blank">privacy policy</a> and allow %2$s to collect and store the data I submit through this form.', 'wp-user-manager' ), $privacy_url, $blogname ); | |
} |
This file contains 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_remove_tab( $tabs ) { | |
$user = wp_get_current_user(); | |
if ( in_array( 'affiliate', (array) $user->roles ) ) { | |
unset( $tabs['subscriptions'] ); | |
} | |
return $tabs; | |
} |
This file contains 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_registration_link_label', function () { | |
return sprintf( __( '<a class="" href="%s">Register</a>', 'wp-user-manager' ), esc_url( get_permalink( wpum_get_core_page_id( 'register' ) ) ) ); | |
} ); |
This file contains 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_action( 'wpum_after_registration', 'wpum_conditional_role', 20, 2 ); | |
function wpum_conditional_role( $user_id, $values ) { | |
$field_key = 'wpum_field_14'; // Change this to your field key | |
if ( ! isset( $values['register'][ $field_key ] ) ) { | |
return; | |
} |
This file contains 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_profile_display_cover_image', '__return_false' ); |
This file contains 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', function ( $fields ) { | |
unset( $fields['robo'] ); | |
return $fields; | |
} ); |
This file contains 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_action( 'admin_init', function () { | |
remove_submenu_page( 'options-general.php' ,'wpum-licenses' ); | |
}, 100 ); |
This file contains 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( 'gettext_wp-user-manager', function ( $text ) { | |
if ( $text == '( Edit account )' ) { | |
return '( Edit profile )'; | |
} | |
return $text; | |
} ); |
This file contains 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_action( 'wpum_after_registration', 'wpum_mailchimp_conditional_subscribe', 20, 2 ); | |
function wpum_mailchimp_conditional_subscribe( $user_id, $values ) { | |
$api_key = carbon_get_theme_option( 'mailchimp_api_key' ); | |
if ( empty( $api_key ) ) { | |
return; | |
} |
This file contains 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( 'body_class', function ( $classes ) { | |
$wpum_pages = array( | |
'login_page', | |
'password_recovery_page', | |
'registration_page', | |
'account_page', | |
'profile_page', |