Support » Plugin: WP User Frontend » custom field url validation

  • Hi Tareq Hasan,
    I add a custom ext box and labeled it URL but by default the only validation criteria available is
    “A validation criteria. User must provide input in that field”
    But it is not sufficient for domain name or URL validation,

    something like this may be good to validate

    function checkdomainname($Domainname)
    if(getmxrr($Domainname, $MXHost))
    return TRUE;
    return FALSE;


    ?> **/
    this I found in google,but dont know how to add to plugin.

    I seen the URL is saved in cf_URL in post meta of db,
    I just want to validate the URL or Domain name before it is saved in db.

    So that only valid domains or URLs will be saved.

    Could you please tell me how to validate the domain names using WP User Frontend: Custom Fields

    thank you.

  • The topic ‘custom field url validation’ is closed to new replies.