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 example shows how to group several filters in the Members Directory of the Ultimate Member. | |
| * For example there are three phone fields in the profile ("Phone", "Phone number", "Mobile Number"), | |
| * but you want to use a single filter "Phone number" to filter by these three fields in the Member Directory. | |
| * | |
| * Note: This example works if the setting "Enable custom table for usermeta" is turned on. | |
| * See the gist https://gist.github.com/denisbaranov/3631abb45a05d6cdfbb6a4b6a6862b4c otherwise. | |
| * |
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 example shows how to validate the email address by domain on registration. | |
| * The code below requires a user email to be collected during registration. | |
| * | |
| * Change the array $forbidden_email_domains - add or remove domains you need. | |
| * Add this code snippet to the end of the file functions.php in the active theme directory. | |
| * | |
| * Ultimate Member documentation: https://docs.ultimatemember.com/ |
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 example shows how to add an image field into the variable "user" in the member directory. | |
| * | |
| * Change the variable $key - enter meta_key of the field you need. | |
| * Add this code snippet to the end of the file functions.php in the active theme directory. | |
| * | |
| * @link Documentation https://docs.ultimatemember.com/ | |
| * @link Article https://docs.ultimatemember.com/article/1586-add-an-image-field-into-the-profile-card-in-the-member-directory | |
| */ |
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 Clustering | |
| * You may add this code to the file functions.php in the active theme directory. | |
| * | |
| * @author Ultimate Member support <[email protected]> | |
| * @link https://ultimatemember.com/extensions/user-locations/ | |
| */ | |
| add_action( 'wp_footer', function () { |
OlderNewer