jetpack_known_staging

jetpack_known_staging

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('jetpack_known_staging') is found 1 times:

  • /vendor/automattic/jetpack-status/src/class-status.php line 226
    		 *     @type array $urls      URLs of staging sites in regex to check against site_url.
    		 *     @type array $constants PHP constants of known staging/developement environments.
    		 *  }
    		 */
    		$known_staging = apply_filters( 'jetpack_known_staging', $known_staging );
    
    		if ( isset( $known_staging['urls'] ) ) {
    			$site_url = site_url();
    			foreach ( $known_staging['urls'] as $url ) {
    				if ( preg_match( $url, wp_parse_url( $site_url, PHP_URL_HOST ) ) ) {
    					$is_staging = true;