wp_validate_site_deletion

wp_validate_site_deletion

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('wp_validate_site_deletion') is found 1 times:

  • /wp-includes/ms-site.php line 237
    	 *
    	 * @param WP_Error $errors   Error object to add validation errors to.
    	 * @param WP_Site  $old_site The site object to be deleted.
    	 */
    	do_action( 'wp_validate_site_deletion', $errors, $old_site );
    
    	if ( ! empty( $errors->errors ) ) {
    		return $errors;
    	}
    
    	/**
    

See this hook used in plugins: