Skip to content

Commit

Permalink
Add ssl verify disable
Browse files Browse the repository at this point in the history
  • Loading branch information
IORoot committed Aug 30, 2021
1 parent 1cd580d commit ed46f7a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/hooks/disable_curl_ssl_verify.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

add_filter('https_ssl_verify', '__return_false');
8 changes: 7 additions & 1 deletion src/hooks/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,10 @@
* (the textarea in the advanceed-custom-forms puts <p> tags around everything and
* messes up the HTML)
*/
require get_template_directory() . '/src/hooks/contact_success_message.php';
require get_template_directory() . '/src/hooks/contact_success_message.php';

/**
* Disable SSL Verify for CURL
* This is so the REST to parkourpulse and parkourlabs work.
*/
require get_template_directory() . '/src/hooks/disable_curl_ssl_verify.php';

0 comments on commit ed46f7a

Please sign in to comment.