wp_validate_site_data

wp_validate_site_data

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.5.2

do_action('wp_validate_site_data') is found 1 times:

  • /wp-includes/ms-site.php line 502
    	 *                               for the included data.
    	 * @param WP_Site|null $old_site The old site object if the data belongs to a site being updated,
    	 *                               or null if it is a new site being inserted.
    	 */
    	do_action( 'wp_validate_site_data', $errors, $data, $old_site );
    
    	if ( ! empty( $errors->errors ) ) {
    		return $errors;
    	}
    
    	// Prepare for database.
    

See this hook used in plugins: