Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function extend_timeout( $parsed_args, $url ) {
- if ( strpos( $url, 'ontraport' ) !== false ) {
- $parsed_args['timeout'] = 30;
- }
- return $parsed_args;
- }
- add_filter( 'http_request_args', 'extend_timeout', 100, 20 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement