network_site_new_form
Action HookDescription
Fires at the end of the new site form in network admin.Hook Information
File Location |
wp-admin/network/site-new.php
View on GitHub
|
Hook Type | Action |
Line Number | 297 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into network_site_new_form
add_action('network_site_new_form', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-admin/network/site-new.php:297
- How this hook is used in WordPress core
<?php
292 /**
293 * Fires at the end of the new site form in network admin.
294 *
295 * @since 4.5.0
296 */
297 do_action( 'network_site_new_form' );
298
299 submit_button( __( 'Add Site' ), 'primary', 'add-site' );
300 ?>
301 </form>
302 </div>
PHP Documentation
<?php
/**
* Fires at the end of the new site form in network admin.
*
* @since 4.5.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-admin/network/site-new.php
Related Hooks
Related hooks will be displayed here in future updates.