WordPress at Your Fingertips
action is not described

wp_validate_site_data action-hook . WP 5.1.0

Fires when data should be validated for a site prior to inserting or updating in the database.

Plugins should amend the $errors object via its WP_Error::add() method.


add_action( 'wp_validate_site_data', 'action_function_name_2041', 10, 3 );
function action_function_name_2041( $errors, $data, $old_site ){
	// action...
Error object to add validation errors to.
Associative array of complete site data. See {@see wp_insert_site()} for the included data.
The old site object if the data belongs to a site being updated, or null if it is a new site being inserted.


Since 5.1.0 Introduced.

Where the hook is called

wp-includes/ms-site.php 475
do_action( 'wp_validate_site_data', $errors, $data, $old_site );

Where in WP core the hook is used WordPress

wp-includes/ms-default-filters.php 44
add_action( 'wp_validate_site_data', 'wp_validate_site_data', 10, 3 );