api_security_known_staging – Filters the flags of known staging sites. Should a staging site you are using not be identified by environment type, a known staging URL or constant. This filter can be used to extend.
Example of both types of filtering are shown. Replace with your own.
PHP
add_filter( 'api_security_known_staging', function( $known_staging ) {
$known_staging['urls'][] = '#\.staging\.kinsta\.com$#i'; // Set "urls" for URLs of staging sites in regex to check against the site url.
$known_staging['constants'][] = 'WP_LOCAL_DEV'; // Set "constants" for PHP constants of known staging/development environments.
return $known_staging;
} );