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 helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Thanks for sharing feedback. We're using it to improve these docs.