Title: baddon250's Replies | WordPress.org

---

# baddon250

  [  ](https://wordpress.org/support/users/baddon250/)

 *   [Profile](https://wordpress.org/support/users/baddon250/)
 *   [Topics Started](https://wordpress.org/support/users/baddon250/topics/)
 *   [Replies Created](https://wordpress.org/support/users/baddon250/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/baddon250/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/baddon250/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/baddon250/engagements/)
 *   [Favorites](https://wordpress.org/support/users/baddon250/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 52 total)

1 [2](https://wordpress.org/support/users/baddon250/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/baddon250/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/baddon250/replies/page/4/?output_format=md)
[→](https://wordpress.org/support/users/baddon250/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin] GLITCH FOUND](https://wordpress.org/support/topic/glitch-found-3/)
 *  Thread Starter [baddon250](https://wordpress.org/support/users/baddon250/)
 * (@baddon250)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/glitch-found-3/#post-18193501)
 * I found out what the glitch was, You were right. It was select 2. However, it’s
   something you might want to put an unload on in your app because it’s woocommerce.
   They renamed the file selectWoo. Dumb right?
 * Could you please add unloads to these 2 file locations in your plugin in future
   updates.
 * WOOCOMMERCE
 * DOMAIN/wp-content/plugins/woocommerce/assets/js/selectWoo/selectWoo.full.min.
   js
 * MOBILOUD
 * [https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js](https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin] GLITCH FOUND](https://wordpress.org/support/topic/glitch-found-3/)
 *  Thread Starter [baddon250](https://wordpress.org/support/users/baddon250/)
 * (@baddon250)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/glitch-found-3/#post-18183765)
 * I’ve got a lot of notes here, and about 14 hours of investigation in this so 
   please read through this thoroughly as I’m the lead full stack developer here
   and it will save you some time.
 * Theres no javascript errors. I checked the PHP logs and im not seeing anything
   other than deprecation warning logs. But other than that, the logs look clean
   No errors on JS Console either.
 * It appears like it might be an edge case scenario, and it’s highly likely that
   it has something to do with that timestamp in the if statement. The timestamp
   is dated 7 months ago, and we noticed and responded to the issue about 5 months
   ago. Considering we don’t update our icons often, and at that time we started
   doing a big push on the members part of our site, that case make the most logical
   sense.
 * As far as the type of error, I’m not sure how many people have reported it, but
   it could very well be an edge case scenario related to an update or something
   that was done when you to put that timestamp in the logic.
 * For my case scenario, I’ve been using UM since 2017, so this is a new error that
   we havn’t been able to solve, but it’s tied to your logic which requires someone
   familiar to your architecture and what updates were done.
 * But with my notes, I’ll do a run through on what I found, what I noticed, and
   what I potentially hypothesize.
 * So far I’ve consistently seen good php logs and good js console. Nothing at all
   except for a deprecation error on UM related to one of your vendor dependencies,
   but it’s a warning warning unrelated to inputs or something bad. I have that 
   included below.
 * MY NOTES, I see that it shows “object Object”, which means that it’s kind of 
   calling, but that it’s not using the right object key, or any key at all. Considering
   that this is a 2 step, where you load the form, and load the icons separately,
   I can observe that object Object is not failing because of the icons pulling 
   because the icons are successfully returning in the network tab and I don’t see
   any wierd characters that would stop it from running, But I’ll include the content
   below for verification. But that’s not where the problem is happening. The dropdown
   should say something like Email with an email icon next to it, but instead it’s
   showing object Object, which lead me to believe that the issue is not selecting
   the right method or element on the Object, and it displays the object, rather
   than the value. Because I can see that the js is getting the icons on the html,
   if I search the html, I can find them and manually set the height of the select2
   container to be able to see it, but that doesn’t fix it. I tried checking for
   conflicting non UM select2 and there was 2 total files, they were related to 
   my app plugin, I disabled both and double checked the html that they were gone,
   and the script still didn’t work. But if there was a problem and we’ve had select2
   problems in the past, there would have been an error related to this, which supports
   my last point that the error very likely relates to an improperly selected object
   key or something like that. Again, I don’t know your architecture, but I do see
   that timestamp, and I’m not sure if that time stamp is in other areas related
   to the same purpose, and I’m not sure if that timestamp has to do with variably
   choosing the object selector, but It’s something to be considered. I do have 
   screenshots attached to be able to help as much as possible as we are trying 
   to get this fixed before we do a hard launch next month. And if you need anything
   else, or have development specific questions, Please let me know. Here’s all 
   the info I have for now.
 * Also a Note: I just checked out the return on the onclick of a form input, screenshot
   is attached. When the ajax comes back it’s coming back in raw html. We’ve had
   problems in the past doing this and we’ve had unexpected errors from it. We tend
   to encode in json or something comparable before sending it over to help prevent
   the html potentially escaping or causing unexpected behavior in js.
 * DEPRECATED ERROR LOG RELATED TO UM (Likely Insignificant)
 * [06-Dec-2024 18:38:22 UTC] PHP Deprecated: Optional parameter $type declared 
   before required parameter $field_id is implicitly treated as a required parameter
   in /mnt/BLOCKSTORAGE/home/1188745.cloudwaysapps.com/bjhcjpavcz/public_html/wp-
   content/plugins/um-gallery-pro/vendor/webdevstudios/cmb2/includes/rest-api/CMB2_REST.
   php on line 693
 * SCREENSHOT OF CONSOLE LOOKS FINE (same on both form input click and icon dropdown
   click)
 * > [View post on imgur.com](https://imgur.com/0wOtPka)
 * SCREENSHOT OF AJAX CALL VIA ICON DROPDOWN CLICK LOOKS FINE
 * > [View post on imgur.com](https://imgur.com/rsvIvSy)
 * *IMPORTANT SCREENSHOT OF AJAX CALL VIA FORM FIELD CLICK POTENTIALLY HAZARDOUS.
   Contains raw html that can potentially escape the js.
 * > [View post on imgur.com](https://imgur.com/bxTDpAl)
 * *IMPORTANT SCREENSHOT OF FORCED SELECT2 POSITION. w/ notes
 * > [View post on imgur.com](https://imgur.com/04ELjIV)
 * SCREENSHOT OF THE DATE THAT I FIRST POSTED ON THIS ISSUE AFTER I FOUND IT
 * > [View post on imgur.com](https://imgur.com/t00NmJA)
 * COPY / PASTE of icons return value, likely insignificant.
 *     ```wp-block-code
       {"success": true,"data": {"icons": {"fas fa-0": {"label": "0","search": ["Digit Zero","nada","none","zero","zilch","0"]},"fas fa-1": {"label": "1","search": ["Digit One","one","1"]},"fas fa-2": {"label": "2","search": ["Digit Two","two","2"]},"fas fa-3": {"label": "3","search": ["Digit Three","three","3"]},"fas fa-4": {"label": "4","search": ["Digit Four","four","4"]},"fas fa-5": {"label": "5","search": ["Digit Five","five","5"]},"fas fa-6": {"label": "6","search": ["Digit Six","six","6"]},"fas fa-7": {"label": "7","search": ["Digit Seven","seven","7"]},"fas fa-8": {"label": "8","search": ["Digit Eight","eight","8"]},"fas fa-9": {"label": "9","search": ["Digit Nine","nine","9"]},"fab fa-42-group": {"label": "42.group","search": ["42-group","42.group"]},"fab fa-500px": {"label": "500px","search": ["500px"]},"fas fa-a": {"label": "A","search": ["Latin Capital Letter A","Latin Small Letter A","letter","a"]},"fab fa-accessible-icon": {"label": "Accessible Icon","search": ["accessibility","disabled","handicap","person","uer","wheelchair","wheelchair-alt","accessible-icon","accessible icon"]},"fab fa-accusoft": {"label": "Accusoft","search": ["accusoft"]},"fas fa-address-book": {"label": "Address Book (solid)","search": ["contact","directory","employee","index","little black book","portfolio","rolodex","uer","username","address-book","address book"]},"far fa-address-book": {"label": "Address Book (regular)","search": ["contact","directory","employee","index","little black book","portfolio","rolodex","uer","username","address-book","address book"]},"fas fa-address-card": {"label": "Address Card (solid)","search": ["about","contact","employee","id","identification","portfolio","postcard","profile","registration","uer","username","address-card","address card"]},"far fa-address-card": {"label": "Address Card (regular)","search": ["about","contact","employee","id","identification","portfolio","postcard","profile","registration","uer","username","address-card","address card"]},"fab fa-adn": {"label": "App.net","search": ["adn","app.net"]},"fab fa-adversal": {"label": "Adversal","search": ["adversal"]},"fab fa-affiliatetheme": {"label": "affiliatetheme","search": ["affiliatetheme"]},"fab fa-airbnb": {"label": "Airbnb","search": ["airbnb"]},"fab fa-algolia": {"label": "Algolia","search": ["algolia"]},"fas fa-align-center": {"label": "Align Center","search": ["format","middle","paragraph","text","align-center","align center"]},"fas fa-align-justify": {"label": "Align Justify","search": ["format","paragraph","text","align-justify","align justify"]},"fas fa-align-left": {"label": "Align Left","search": ["format","paragraph","text","align-left","align left"]},"fas fa-align-right": {"label": "Align Right","search": ["format","paragraph","text","align-right","align right"]},"fab fa-alipay": {"label": "Alipay","search": ["alipay"]},"fab fa-amazon": {"label": "Amazon","search": ["amazon"]},"fab fa-amazon-pay": {"label": "Amazon Pay","search": ["amazon-pay","amazon pay"]},"fab fa-amilia": {"label": "Amilia","search": ["amilia"]},"fas fa-anchor": {"label": "Anchor","search": ["anchor","berth","boat","dock","embed","link","maritime","moor","port","secure","ship","tool"]},"fas fa-anchor-circle-check": {"label": "Anchor Circle Check","search": ["enable","marina","not affected","ok","okay","port","validate","working","anchor-circle-check","anchor circle check"]},"fas fa-anchor-circle-exclamation": {"label": "Anchor Circle Exclamation","search": ["affected","failed","marina","port","anchor-circle-exclamation","anchor circle exclamation"]},"fas fa-anchor-circle-xmark": {"label": "Anchor Circle Xmark","search": ["destroy","marina","port","uncheck","anchor-circle-xmark","anchor circle xmark"]},"fas fa-anchor-lock": {"label": "Anchor Lock","search": ["closed","lockdown","marina","padlock","port","privacy","quarantine","anchor-lock","anchor lock"]},"fab fa-android": {"label": "Android","search": ["robot","android"]},"fab fa-angellist": {"label": "AngelList","search": ["angellist"]},"fas fa-angle-down": {"label": "Angle Down","search": ["Down Arrowhead","arrow","caret","download","expand","insert","angle-down","angle down"]},"fas fa-angle-left": {"label": "Angle Left","search": ["Single Left-Pointing Angle Quotation Mark","arrow","back","caret","less","previous","angle-left","angle left"]},"fas fa-angle-right": {"label": "Angle Right","search": ["Single Right-Pointing Angle Quotation Mark","arrow","care","forward","more","next","angle-right","angle right"]},"fas fa-angle-up": {"label": "Angle Up","search": ["Up Arrowhead","arrow","caret","collapse","upgrade","upload","angle-up","angle up"]},"fas fa-angles-down": {"label": "Angles Down","search": ["arrows","caret","download","expand","angles-down","angles down"]},"fas fa-angles-left": {"label": "Angles Left","search": ["Left-Pointing Double Angle Quotation Mark","arrows","back","caret","laquo","previous","quote","angles-left","angles left"]},"fas fa-angles-right": {"label": "Angles Right","search": ["Right-Pointing Double Angle Quotation Mark","arrows","caret","forward","more","next","quote","raquo","angles-right","angles right"]},"fas fa-angles-up": {"label": "Angles Up","search": ["arrows","caret","collapse","upload","angles-up","angles up"]},"fab fa-angrycreative": {"label": "Angry Creative","search": ["angrycreative","angry creative"]},"fab fa-angular": {"label": "Angular","search": ["angular"]},"fas fa-ankh": {"label": "Ankh","search": ["Ankh","amulet","copper","coptic christianity","copts","crux ansata","egypt","venus","ankh"]}},"total_count": 2045}}
       ```
   
    -  This reply was modified 1 year, 6 months ago by [baddon250](https://wordpress.org/support/users/baddon250/).
    -  This reply was modified 1 year, 6 months ago by [baddon250](https://wordpress.org/support/users/baddon250/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin] GLITCH FOUND](https://wordpress.org/support/topic/glitch-found-3/)
 *  Thread Starter [baddon250](https://wordpress.org/support/users/baddon250/)
 * (@baddon250)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/glitch-found-3/#post-18179688)
 * Heres a picture as well
 * [https://postimg.cc/tYRPQhLV](https://postimg.cc/tYRPQhLV)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin] Glich on Form Icons](https://wordpress.org/support/topic/glich-on-form-icons/)
 *  Thread Starter [baddon250](https://wordpress.org/support/users/baddon250/)
 * (@baddon250)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/glich-on-form-icons/#post-18057137)
 * Did you guys get a chance to check this out?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin] Glitch](https://wordpress.org/support/topic/glitch-9/)
 *  Thread Starter [baddon250](https://wordpress.org/support/users/baddon250/)
 * (@baddon250)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/glitch-9/#post-17940508)
 * I’m not getting any related errors, just standard deprecated errors which wouldn’t
   cause anything. Based on the look of it, it appears like a js error, but there
   are no console logs on the console.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin] Glitch](https://wordpress.org/support/topic/glitch-9/)
 *  Thread Starter [baddon250](https://wordpress.org/support/users/baddon250/)
 * (@baddon250)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/glitch-9/#post-17918882)
 * I tried to clear my cache and it did nothing, problem still persists. Problem
   is happening on my development server as well which has no cache.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin] Filters messed up after last update](https://wordpress.org/support/topic/filters-messed-up-after-last-update/)
 *  Thread Starter [baddon250](https://wordpress.org/support/users/baddon250/)
 * (@baddon250)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/filters-messed-up-after-last-update/#post-17711773)
 * That makes the filter completely useless. Can’t you just remove that esc_html
   and do an update? There’s a lot of people with your plugins that are all affected
   by this, i’m probably the first to notify you of this, but it’s enough for there
   to be a github on this specific issue. As a developer, I need options for development.
   The phone number is probably the most important field because that goes into 
   call tracking and the idea of using frontend js to handle this after it was processed
   in the backend is a poor way to code. It’s one thing to have an esc_html on the
   phone number itself for security purposes, but you’re completly nullifying the
   use of filters on that variable, the code needs to be adjusted.
    -  This reply was modified 2 years, 1 month ago by [baddon250](https://wordpress.org/support/users/baddon250/).
    -  This reply was modified 2 years, 1 month ago by [baddon250](https://wordpress.org/support/users/baddon250/).
    -  This reply was modified 2 years, 1 month ago by [baddon250](https://wordpress.org/support/users/baddon250/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin] Filters messed up after last update](https://wordpress.org/support/topic/filters-messed-up-after-last-update/)
 *  Thread Starter [baddon250](https://wordpress.org/support/users/baddon250/)
 * (@baddon250)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/filters-messed-up-after-last-update/#post-17710328)
 * Here is my current outputted html.
 *     ```wp-block-code
       <a href="tel:a%20href=tel:8003606771%20onclick=handle_email_call_notification(404,'call');%20ms_report_conversion();(800)%20360-6771/a" rel="nofollow" title="Toll-Free Phone">&lt;a href="tel:8003606771" onclick="handle_email_call_notification(404,'call'); ms_report_conversion();"&gt;(999) 999-9999&lt;/a&gt;</a>
       ```
   
    -  This reply was modified 2 years, 1 month ago by [baddon250](https://wordpress.org/support/users/baddon250/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FiboSearch - Ajax Search for WooCommerce] Update bugged my search bar](https://wordpress.org/support/topic/update-bugged-my-search-bar/)
 *  Thread Starter [baddon250](https://wordpress.org/support/users/baddon250/)
 * (@baddon250)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/update-bugged-my-search-bar/#post-17148927)
 * ![](https://i0.wp.com/i.ibb.co/CPrv3qF/Screenshot-2023-10-25-01-34-46.png?ssl
   =1)
 * Heres the screenshot
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin] Password Reset Problem](https://wordpress.org/support/topic/password-reset-problem-10/)
 *  Thread Starter [baddon250](https://wordpress.org/support/users/baddon250/)
 * (@baddon250)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/password-reset-problem-10/#post-16836253)
 * I’ve already verified that caching is turned off on this page, and the recaptcha
   sitekey and secret is correct on the wordpress admin. Im wondering if it’s a 
   programming error maybe?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin] Password Reset Problem](https://wordpress.org/support/topic/password-reset-problem-10/)
 *  Thread Starter [baddon250](https://wordpress.org/support/users/baddon250/)
 * (@baddon250)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/password-reset-problem-10/#post-16836249)
 * The page is [https://biltpros.com/password-reset](https://biltpros.com/password-reset)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin] Help with Adding Error Message on Form](https://wordpress.org/support/topic/help-with-adding-error-message-on-form/)
 *  Thread Starter [baddon250](https://wordpress.org/support/users/baddon250/)
 * (@baddon250)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/help-with-adding-error-message-on-form/page/2/#post-16326731)
 * That code is not making the url show on the error message. Here is my code.
 *     ```wp-block-code
       function um_custom_validate_website( $key, $array, $args ) {
       	//$val = $args[$key];
       	$keys = array('page_url');
       	//website link 37081
   
       	if(!isset($args[$key]) || empty($args[$key])){
       	} else{
       		if(is_active_subscription(37081)){//37082 = toll-free-number	
       		} else{
       			$link = get_site_url(). '/product/toll-free-phone-number';
   
       			//my_submit_form_error('Add-On Not Enabled, <a href="'. $link .'">CLICK HERE</a> to to get the Add-On.', $key);
       			$output = 'Add-On Not Enabled, Please go <b><a href="' . $link . '">HERE</a></b> to enable.';
       			UM()->form()->add_error( $key, __( "Add-On Not Enabled,  Go to your Profile Add-Ons on your Profile Menu to add.", 'ultimate-member' ) );
       		}
       	}
   
       }
       $link = get_site_url(). '/product/toll-free-phone-number';
       $output = 'Add-On Not Enabled, Please go <b><a href="' . $link . '">HERE</a></b> to enable.';
       $key = "user_url";
       add_action( 'um_custom_field_validation_validate_website', 'um_custom_validate_website', 30, 3 );
       apply_filters( "um_{$key}_form_edit_field", $output, $mode );
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin] Help with Adding Error Message on Form](https://wordpress.org/support/topic/help-with-adding-error-message-on-form/)
 *  Thread Starter [baddon250](https://wordpress.org/support/users/baddon250/)
 * (@baddon250)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/help-with-adding-error-message-on-form/page/2/#post-16324138)
 * The php error went away, but it’s not showing the updated error message for the
   user
    -  This reply was modified 3 years, 5 months ago by [baddon250](https://wordpress.org/support/users/baddon250/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin] Help with Adding Error Message on Form](https://wordpress.org/support/topic/help-with-adding-error-message-on-form/)
 *  Thread Starter [baddon250](https://wordpress.org/support/users/baddon250/)
 * (@baddon250)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/help-with-adding-error-message-on-form/page/2/#post-16324124)
 * I’m getting this error when I try to run that filter.
 * PHP message: PHP Fatal error: Uncaught Error: Using $this when not in object 
   context
 * $key is set to “user_url”
    -  This reply was modified 3 years, 5 months ago by [baddon250](https://wordpress.org/support/users/baddon250/).
    -  This reply was modified 3 years, 5 months ago by [baddon250](https://wordpress.org/support/users/baddon250/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin] Help with Adding Error Message on Form](https://wordpress.org/support/topic/help-with-adding-error-message-on-form/)
 *  Thread Starter [baddon250](https://wordpress.org/support/users/baddon250/)
 * (@baddon250)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/help-with-adding-error-message-on-form/page/2/#post-16324106)
 * Here’s the function I’m working with. With $output being the error with link.
 *     ```wp-block-code
       function um_custom_validate_website( $key, $array, $args ) {
       	//$val = $args[$key];
       	$keys = array('page_url');
       	//website link 37081
   
       	if(!isset($args[$key]) || empty($args[$key])){
       	} else{
       		if(is_active_subscription(37081)){//37082 = toll-free-number	
       		} else{
       			$link = get_site_url(). '/product/toll-free-phone-number';
   
       			//my_submit_form_error('Add-On Not Enabled, <a href="'. $link .'">CLICK HERE</a> to to get the Add-On.', $key);
       			$output = 'Add-On Not Enabled, Please go <b><a href="' . $link . '">HERE</a></b> to enable.';
       			UM()->form()->add_error( $key, __( "Add-On Not Enabled,  Go to your Profile Add-Ons on your Profile Menu to add.", 'ultimate-member' ) );
       		}
       	}
   
       }
       add_action( 'um_custom_field_validation_validate_website', 'um_custom_validate_website', 30, 3 );
       ```
   

Viewing 15 replies - 1 through 15 (of 52 total)

1 [2](https://wordpress.org/support/users/baddon250/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/baddon250/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/baddon250/replies/page/4/?output_format=md)
[→](https://wordpress.org/support/users/baddon250/replies/page/2/?output_format=md)