Need some info as to which setting I should allocate for the below fix

If anyone could help me with the following snippet settings as I would like to add it to Code Snippets.

function mymodule_curl_before_request($curlhandle){
add_action( ‘requests-curl.before_request’,’mymodule_curl_before_request’, 9999 );

1. Do I run the snippet everywhere or only in admin?
2. Also due to it placing the priority as 9999, do I also change the priority in Code Snippets page at the bottom right to 9999 as well?
Some help would be much appreciated.
Thanks in advance


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Your Advertisement Here