{"id":14684820,"date":"2021-07-21T13:24:41","date_gmt":"2021-07-21T13:24:41","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/plugin-modification-7\/"},"modified":"2021-07-21T13:27:12","modified_gmt":"2021-07-21T13:27:12","slug":"plugin-modification-7","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/plugin-modification-7\/","title":{"rendered":"Plugin Modification"},"content":{"rendered":"<p>Hello, I have made a small modification to the plugin to support multiple hook URLs by splitting them with semicolons (;).<\/p>\n<p>I have changed class-module-zapier.php line 92:<\/p>\n<p><code>$result = wp_remote_post( $hook_url, apply_filters( &#039;ctz_post_request_args&#039;, $args ) );<\/code><\/p>\n<p>to:<\/p>\n<pre><code>if (strripos($hook_url, &#039;;&#039;) !== false) \n    $hook_urls = explode(&#039;;&#039;, $hook_url);\nelse $hook_urls = [$hook_url];\nforeach ($hook_urls as $hook_url)\n    $result = wp_remote_post( $hook_url, apply_filters( &#039;ctz_post_request_args&#039;, $args ) );<\/code><\/pre>\n<p>It is not perfect, but I would appreciate it if you could implement something like this in future versions.<\/p>\n","protected":false},"template":"","class_list":["post-14684820","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14684820","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":2,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14684820\/revisions"}],"predecessor-version":[{"id":14684844,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14684820\/revisions\/14684844"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=14684820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}