Filter: bricks/remote_get
Filter: bricks/remote_get
Section titled “Filter: bricks/remote_get”Filters the arguments passed to wp_remote_get() when Bricks performs a remote GET request (e.g., fetching templates, community library).
Parameters
Section titled “Parameters”$args(array): Array of arguments forwp_remote_get()(e.g.,timeout,sslverify).$url(string): The URL being requested.
Example usage
Section titled “Example usage”add_filter( 'bricks/remote_get', function( $args, $url ) { // Example: Increase timeout for specific API requests if ( strpos( $url, 'api.example.com' ) !== false ) { $args['timeout'] = 60; }
return $args;}, 10, 2 ); Was this page helpful?