I guess you are searching for the wpmu_create_blog()
function. Just disable the standard registration process and attach this function to the regular registration. user_register
is a good action hook to do this.
Regarding your second question I don’t think there is a built in way. A good start is the wpmu_delete_blog()
function. You could trigger this function on a regular base using wp-cron. The information when a blog was updated the last time is stored in wp_blogs
in the last_updated
column, but I don’t think there is an API function to retrieve this either. So you’ll maybe need a custom SQL query to get it.
Related Posts:
- How can I un-reserve a pending username registration?
- wordpress multisite, how to keep user on subdomain throughout registration process?
- Allowing periods in usernames
- Remove Site Name from register form – Multisite
- Prevent user creating new users with specific roles
- Get first_name and last_name on user_register hook
- Can’t add user to blog on registration (Multisite)
- Is there a wordpress function to cleanly delete an entry in the signups table?
- WordPress 3.2(Multisite) – How to add custom user meta fields to signup form?
- How to add multiple existing users to a multisite site?
- WPMU – new users are automatically subscribed to the main blog – how to prevent that?
- User registration on sub site
- Disable domain redirect
- Displaying a message upon user registration
- What sites are you registered to when joining a multisite?
- Add a user to a specific blog when they register?
- Multisite – user email activation links broken
- Add menu items/actions for multisite users who are registered on the network but do not have a role or capability in any sites
- Four columns in the wp_users table
- WP MU Register User across all blogs
- Is the Multi site functionality a viable option for Country and Language targeting?
- Using the standard WordPress “New User” interface on a multisite
- How can you override the is_multisite check in wp-login.php for individual login/registration?
- User registration on two sites in same multisite
- How to change a user role after registering in multisite?
- How to fix that new users show up again in subsite of a Multisite?
- User registration is currently not allowed
- Multisite ‘Welcome User Email’ SITE_NAME returns ‘network’ name, not the name of the blog
- User registration on wordpress multisite
- Easily adding multiple existing users to a multisite site
- Automatic registration on main site upon user registration on Multisite
- Register a user only to the root blog – WP Multisite
- Activate User account for Sub Site broken
- Possible to have duplicate usernames on different two multisites
- How to allow mixed case characters in multisite site name?
- Modify new user email notification in network admin screen wp multisite
- Users getting linked unwanted to main mu in WordPress multisite (WPMU)
- Can’t activate a user on multisite install
- WordPress Multisite Network Subdomain
- Multisite: How to bypass wpmu_signup_user_notification and add my own notification logic?
- Allow users to register on multisite through WooCommerce using the same email address
- A different role for each site in a multisite
- Activation of new Registered site fails on multisite
- User registration problem on multisites web
- Multisite “Skip Confirmation Email” Log Out Problem
- Multisite – User creation for second site from first site?
- How to Create WPMu New User?
- Possible to set new user’s site time zone at user creation using Gravity Forms?
- multisite registration: check existing subdomains while typing
- Registration Page
- Using a number for limiting registering or banning on multisite
- How to use same email for multiple users? [duplicate]
- Perform action on WPMU blog deletion
- Changing Multisite themes on mass
- MU domain mapping login issue
- Sitemap Plugin for WordPress Network
- Import a regular WordPress blog into a MU installation
- Basic analytics across WordPress Multisite network [closed]
- Which is the recommended method to transfer a wordpress site to wordpress Multisite?
- Changing Multisite URL after the subsite has been in use
- Can’t find “Add New” button for themes in a multisite
- How to make wp-signup.php a 1-step process [closed]
- Multiple Multisite networks on the same domain?
- How the mu-plugins Folder Works in a Multisite Installation?
- Replacing the default content created while the site creation
- Multisite, can’t see sub blogs
- upgrade from WPMU 2.9.2 to WP 3.2.1
- How to create a network using a command line script?
- Mapping subdomain to point to sudirectory site in WordPress Multisite Network
- WordPress Network admin options page: how to store options and where will they be stored?
- How to use a Wildcard SSL with WordPress Network?
- Migrating wordpress multisite and domain mapping plugin
- Cookie signed verification failed – wp-saving-post
- Error: reassigning content to a different user is not supported on multisite
- Run additional service on domain with WordPress Multisite?
- Development of new theme and rollout on multisite
- metaboxes disappear on saved pages
- Multiple subsites in a single wordpress installation
- How many databases do I need?
- How to sync roles across Multisite?
- Multisite Subdirectory Site Dashboard redirect loop
- WordPress Multisites or Multiple WP Single sites?
- Is it possible to disable html code error auto fixing feature by wordpress 4.9.1?
- LimitInternalRecursion error
- Should I use Multi Site to achieve different designs for different sections?
- WPMU on MySQL limited to 1GB of space?
- Sites network with sub-folders
- Set my own password when registering a multisite user or site
- Efficient way to fetch all archived WPMS blogs
- Change main site / network admin site?
- Serve theme and plugins assets from correct domain on multi-domain multisite
- Multisite different domains mapping error on GGS
- WordPress Multisite wp-admin/ redirect loop but adding index.php works fine
- Can WP multisite manage multiple ccTLDs
- Should i use multisite for my business?
- WordPress Network with SSL for multiple domains
- Nginx rules for subdomain multisite install (Bedrock)
- WordPress Multisite redirect loop
- WordPress Multisite Subsite WP admin not working
- How to make Multisite global login that redirects to correct subsite after login