Skip to content
Get Bricks

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).

  • $args (array): Array of arguments for wp_remote_get() (e.g., timeout, sslverify).
  • $url (string): The URL being requested.
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 );