Networks for WordPress
Subdomain name availability checker (6 posts)

  1. skvwp
    Posted 4 years ago #

    Dear All,

    I am a happy user of 'Network for WordPress' plugin. At present, I am busy creating a very big network of more than 300 domains in WP multi site environment. My question is whether it is possible to give my visitors a facility to search whether a subdomain site name is available for them or not? (on a specific domain in Network of domains on a single install)

    Hope, my question is clear! Lets say in other words, if my main domain is domain.com and domainA.com and domainB.com are mapped on the main domain then abc.domainA.com is already registered, then let the other user search and find out that ABC.domainA.com is not available but ABC.domainB.com is available.

    Please help....




  2. David Dean
    Plugin Author

    Posted 4 years ago #

    Hi skvwp,

    You can use the domain_exists function (built in to WP) to check whether a combination of domain and path is available. It needs the network ID as a parameter, so you'll have to get IDs for the networks you want to check. That's a pretty straightforward query against the wp_site table, though, and one you'd want to run to get a list of domains to check anyway.

    Be sure to let us know how it goes or if you have any more questions!

  3. skvwp
    Posted 4 years ago #


    What you suggested is great, but everything went over my head!! I am a scientist and work on cancer, I understand the language of cancer. However, Due to my good logical sense, I am putting my websites together with the help of plugins and themes such as your plugin. So, what I need is either detailed description of above (step-by-step) that I could follow word by word, or a simple small plugin that a knowledgably person like you can write.

    Thanks in advance for your help.


  4. roxor
    Posted 3 years ago #

    hi skvwp,
    i was wondering did you get any plugin or trick to check Subdomain name availability working ??
    i got the same issue here.

  5. skvwp
    Posted 3 years ago #

    not yet. If anyone else could kindly describe step by step, i.e what to add in the header.php so that the form appears which check the subdomain name availabilty across multinetwork.

    Ideal would be that the admin add all the networked domains at the backend. At the fron end the users pull down the networked domains in a form and search for name. Up on clicking search, the result is displayed whether the name is available or not. If available, the user just go ahead to register it.

  6. skvwp
    Posted 3 years ago #


    But I dont know how to make use of this information to solve the question?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Networks for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic