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.7.2

do_action('wp_validate_site_data') is found 1 times:

  • /wp-includes/ms-site.php line 502
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    *                               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: