Not sure where you are placing the code as you don’t say – but you will need to edit the WordPress signup code / file and add your random string code in there and then hide the input for the sub-domain or set it to disabled and set it’s value to the random string.
You’ll then also need to encode the same random string in the form and check that the encoding is correct when the form is submitted so that you know it hasn’t been changed (it would be easy to change the random code in the HTML using something like firebug).
Once you get past the processing then the blog creation will be the same and antisplog will work as before.
Related Posts:
- How to stop form resubmission on page refresh
- add_filter the_content str_replace after shortcode
- How does wordpress know which site to setup (on multisite)?
- How to exclude pages from the search results
- Creating a WordPress form with a PHP script and default header
- Fix 403 error on WordPress multisite network using subdomains
- Submitting form via admin-post.php and handling errors
- Custom WordPress+PHP+MYSQL+AJAX form, submit event not captured by Javascript, but does POST data to the DB
- Passing POST data from one WP post to another
- How to create Sub Sub domain Multi User blogs?
- Processing a subscription form with POST method?
- How to group 2 radio buttons in a widget?
- Using Multiple Submit buttons to trigger customised php functions
- Get Admin Email Address From External PHP page
- Adding Custom Forms
- How to create a form and display its content as table in admin panel?
- How to change home or site url using action hooks or filter?
- How can I reuse the code to capture a param in a URL and place in a value in a hidden form?
- wordpress media library new uploads don’t write to database
- How to limit the number of forgot password reset attempts in WordPress?
- How to call plugin function per site in a multisite?
- Ajax call return 404
- How to pre populate a form field with a link of a current user’s author profile?
- NGINX rewrite rules for multisite
- Show success or error messages in Ajax response to WordPress custom registration form
- wp_mail file attachment not being placed in upload folder?
- Form Security: nonce vs. jQuery
- Moving code from theme header to functions.php
- Trying do build a contact form
- User register hook is not working in woocomerce register form
- How do I display offsite database info on my wordpress site?
- Can a page contain php code?
- Timthumb.php image gallery not working on Multisite WordPress
- How to send form data from WordPress (Meta Box) to an OData service?
- Find Site ID From WP_Post
- List all blogs, but exclude the main site
- Why does my user not get added to the database on custom registration?
- How to add post meta in while loop?
- How to set cookies
- PHP Contact form
- Get wp_current_user_id using PHP and MySQL
- PHP- Why is my contact form keep showing it is invalid? [closed]
- Simple php in wordpress widget [closed]
- Is it legal to redefine wp_password_change_notification in a mu plugin?
- Adding data to custom wordpress database table
- Make a page (url) not cacheable [closed]
- Display multi-select box choices in a bullet list [closed]
- Custom forms with HTML
- Using Ajax to submit a form, and run a SQL Select query based on user input from the form
- WordPress Multisite login_redirect to primary blog and specific page based on role
- $_POST returning empty values
- Trying to update Woocommerce meta values
- How to send custom form submissions to WordPress Database?
- Custom PHP form needs refresh to load page correctly
- How to change this ajax function to submit to the default wordpress content area instead of the custom field ‘seller notes’?
- Confuse between forms and tables
- wordpress contact form messages not sending although it saying they were sent successfully with this php code
- Using a PHP form, get the page title or any other element in the sent e-mail
- Annoying/confusing WordPress memory limit exhausted
- Create form which redirects to site in network?
- Multiple WordPress sites with different theme and plugin sharing the same content
- custom search query database in child theme
- Creating a WordPress addon for ContactForm7 submission (.XML file export)
- Using transients to store form notifications
- Insert data from form to database
- not able to access $_POST on backend profile update
- Custom Plugin Develoment, Form Action
- wordpress form action page not found
- Trouble with checked() for array of multiple checkboxes
- Custom HTML form using PHP – help with ajax/username validation
- Transfer WordPress Login Session to an Extended Webpage on the Same Domain
- Form direction to .php on localhost
- Resource 404 error on multisite subdirectory install
- Form not working as it should in WordPress, but in a normal HTML site it does
- Ajax call URL 404’ing when pushed to staging server
- Update only some custom user fields
- Passed variable gets undefined variable error on insert on next page
- How to set up an auto delete post?
- Dynamic form variables for post meta
- Trying to display user meta by “name” – not by “ID”
- WP multisite network plugin fails to see classes loaded with spl autoload
- Host does not allow remote connection, so how do I transfer data to my WordPress site?
- Trouble using wordpress functions in a pop-up modal form
- Custom PHP-coding in MU installs
- How to pass username into form that sends data to database
- HOW TO Insert Existing PHP Code to WOrdPress
- I need a button to appear when not loged in and another when logged in, I need help fixing code PLEASE!
- WPMU – How to echo only one URL
- Where to put include php file?
- Redirect loop upon installation of my plugin
- Field validation strlen works in php7.4 fails 8.1 [closed]
- Embed PHP script into WP – what is the best way
- Preventing script injections in HTML form
- Internal server error when enabling Multisite in WordPress
- Can’t insert into a database wordpress
- Single wordpress multi website down need help factoring what it is
- Enabling pretty permalinks with Docker, Multisite WordPress and Caddy
- Running WP-Cron on Multisite networks the right way?
- Automatically populating a date parameter within a shortcode
- Set custom post type to load custom block pattern by default