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 | |
/** | |
* 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 () { |
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 | |
/** | |
* 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 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 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 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 off. | |
* See the gist https://gist.github.com/denisbaranov/dd8e7c0845af35eeba2bdd08f5f72a76 otherwise. | |
* |
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 | |
/** | |
* This code snippet restores capabilities 'edit_user' and 'delete_user' if they were blocked by a third-party plugin. | |
* | |
* You can add this code to the end of the file functions.php in the active theme (child theme) directory. | |
* | |
* Ultimate Member documentation: https://docs.ultimatemember.com/ | |
* Ultimate Member support (for customers): https://ultimatemember.com/support/ticket/ | |
* |
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 | |
/** | |
* This example shows how to add custom predefined field that extends the 'checkbox' field type in Ultimate Member | |
* You can add custom code to the end of the file functions.php in the active theme directory. | |
* Important! You have to change variables: $type, $title, $options | |
* | |
* @author Ultimate Member support <[email protected]> | |
* @package Ultimate Member | |
* @since 2020-06-25 |
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 | |
/** | |
* This example shows how to add several tabs with custom shortcodes into the Profile page of the Ultimate Member. | |
* You can add custom code to the end of the file functions.php in the active theme directory. | |
* Important! Each tab must have a unique key. | |
* | |
* Ultimate Member documentation: https://docs.ultimatemember.com/ | |
* Ultimate Member support (for customers): https://ultimatemember.com/support/ticket/ | |
*/ |
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 | |
/** | |
* 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 $allowed_email_domains - add or remove what 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 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 | |
/** | |
* Displays fallback value if the field value is empty. For the "view" mode only. | |
* @param string $value | |
* @param string $default | |
* @param string $key | |
* @param string $type | |
* @param array $data | |
* @return string |
NewerOlder