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
function my_jb_update_user_display_name( $userdata ) { | |
$userdata['display_name'] = $userdata['first_name'] . ' ' . $userdata['last_name']; | |
return $userdata; | |
} | |
add_filter( 'jb_job_submission_create_account_data', 'my_jb_update_user_display_name', 10, 1 ); | |
add_filter( 'jb_job_submission_update_account_data', 'my_jb_update_user_display_name', 10, 1 ); |
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
remove_filter( 'um_profile_field_filter_hook__user_rating', 'um_reviews_show_rating', 99 ); | |
/** | |
* Hide rating at frontend | |
* | |
* @param $value | |
* @param $data | |
* | |
* @return string | |
*/ |
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
function um_001122_config_get( $data, $key ) { | |
if ( 'password_reset_attempts_timeout' === $key ) { | |
// Use any time in seconds. There is using WordPress constant for making timeout = 24hr. Important! Value must be not null and numeric. | |
$data = DAY_IN_SECONDS; | |
} | |
return $data; | |
} | |
add_filter( 'um_config_get', 'um_001122_config_get', 10, 2 ); |
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
function um_021522_form_notice( $text, $key ) { | |
if ( 'lostpassword-info' === $key ) { | |
$text = __( 'Please enter your email address. You will receive an email message with instructions on how to reset your password.', 'ultimate-member' ); | |
} | |
return $text; | |
} | |
add_filter( 'um_form_notice', 'um_021522_form_notice', 10, 2 ); | |
function um_021522_lostpassword_form_args( $lostpassword_args ) { |
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
/** | |
* Use real URLs instead of {user_exists_url}, {user_doesnot_exist_url} placeholders. | |
*/ | |
function um_012722_redirect_after_sending_password_reset( $user_id = null ) { | |
if ( is_numeric( $user_id ) ) { | |
// user exists | |
wp_redirect( '{user_exists_url}' ); | |
} else { | |
wp_redirect( '{user_doesnot_exist_url}' ); | |
} |
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 | |
/** | |
* Description: Fires in the form footer before closing tag in the form. | |
* This hook may be used to display custom content in the form footer. | |
* | |
* Hook: um_form_footer | |
* | |
* Type: action | |
* @package um\core |
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
// 'um_change_password_process_hook' - use action hook 'um_before_changing_user_password' instead | |
/** | |
* Fires just before the Reset Password process when Ultimate Member Reset Password form data is validated. | |
* | |
* Note: Use this hook for adding custom actions before reset user's password form. It's the first hook after the validating form data. | |
* | |
* Hook: um_before_changing_user_password | |
* | |
* Type: action |
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
// 'um_reset_password_process_hook' - use action hook 'um_before_send_lostpassword_link' instead | |
/** | |
* Fires just before the Lost Password process when Ultimate Member Lost Password form data is validated. | |
* | |
* Note: Use this hook for adding custom actions before lost user's password form. It's the first hook after the validating form data. | |
* | |
* Hook: um_before_send_lostpassword_link | |
* | |
* Type: action |
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
// 'um_change_password_errors_hook' - use action hook 'um_resetpass_errors_hook' instead | |
/** | |
* Fires after Ultimate Member native Reset Password form validations are completed. | |
* | |
* Note: Use this hook for adding custom validations to your Reset Password form. | |
* | |
* Hook: um_resetpass_errors_hook | |
* | |
* Type: action |
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
// 'um_change_password_page_hidden_fields' - use filter's hook `um_resetpass_form_args` instead and add the hiddens to it | |
/** | |
* Description: Fires before rendering the lost password form and filters the lost password arguments. | |
* This hook may be used to add custom hidden fields or display custom content in the password reset form header. | |
* | |
* Hook: um_resetpass_form_args | |
* | |
* Type: filter | |
* |