allowed_http_origin

allowed_http_origin

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

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('allowed_http_origin') is found 1 times:

  • /wp-includes/http.php line 485
    	 *
    	 * @param string $origin     Origin URL if allowed, empty string if not.
    	 * @param string $origin_arg Original origin string passed into is_allowed_http_origin function.
    	 */
    	return apply_filters( 'allowed_http_origin', $origin, $origin_arg );
    }
    
    /**
     * Send Access-Control-Allow-Origin and related headers if the current request
     * is from an allowed origin.
     *