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 custom email template "Profile Completeness - Profile is complete". | |
| * | |
| * @param array $emails Emails list. | |
| * @return array | |
| */ | |
| function um_email_notification_profile_is_complete( $emails ) { |
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 | |
| /** | |
| * Disable the ability to pan and zoom the map. | |
| */ | |
| add_action( 'wp_footer', function () { | |
| ?><script type="text/javascript"> | |
| function um_user_locations_customize_02 ( args, hash, directory ) { | |
| args.zoom = 4; |
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 | |
| /** | |
| * Redirection after profile is completed | |
| * Add this code to the file functions.php in the active theme directory. | |
| */ | |
| add_filter( 'um_profile_completeness_complete_profile_redirect', function( $redirect, $user_id, $result ) { | |
| if ( is_array( $result ) && absint( $result['progress'] ) >= absint( $result['req_progress'] ) ) { | |
| $redirect = home_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 | |
| /** | |
| * Prevent members from being able to see themselves in the member directory. | |
| * Add this code to the file functions.php in the active theme directory. | |
| */ | |
| function um_pre_users_query_notme( $directory ) { | |
| if ( is_user_logged_in() ) { | |
| $directory->where_clauses[] = 'u.ID != ' . get_current_user_id(); |
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
| /** | |
| * Hide error messages under fields. | |
| */ | |
| .um-field .um-field-error { | |
| display: none; | |
| } |
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
| /** | |
| * A code snippet that triggers the "resize" once the popup is open. | |
| * Add this code to your custom JS file. | |
| */ | |
| jQuery( '.elementor-button[href^="#elementor-action"]' ).on( 'click', function () { | |
| setTimeout( function() { | |
| jQuery( window ).trigger( 'resize' ); | |
| }, 100 ); | |
| } ); |
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 all approved users whose Ultimate Member profiles are public to the sitemap. | |
| * Add this code to the file functions.php in the active theme directory. | |
| */ | |
| add_filter( 'wp_sitemaps_max_urls', 'um_sitemaps_users_max_urls', 10, 2 ); | |
| add_filter( 'wp_sitemaps_users_pre_max_num_pages', 'um_sitemaps_users_max_num_pages', 10, 1 ); | |
| add_filter( 'wp_sitemaps_users_pre_url_list', 'um_sitemaps_users_get_url_list', 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
| /** | |
| * Re-initialize dropdown functionality. | |
| * Add this code to your custom JS file. | |
| */ | |
| jQuery( function () { | |
| /** | |
| * Verifies that there is no empty value. | |
| */ | |
| function unselectEmptyOption( e ) { |
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 pre-defined fields to the main Account tab. | |
| function um_account_tab_general_fields( $args, $shortcode_args ) { | |
| // Fields Meta Keys. | |
| $args .= ',birth_date'; | |
| $args .= ',country'; | |
| $args .= ',languages'; |
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 before the password reset form shortcode is loaded. | |
| * | |
| * Hook: um_before_password_form_is_loaded | |
| * | |
| * Type: action | |
| * | |
| * @example https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/class-password.php#LC239 |
OlderNewer