Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Plugin Modification

$
0
0

Replies: 1

Hello, I have made a small modification to the plugin to support multiple hook URLs by splitting them with semicolons (;).

I have changed class-module-zapier.php line 92:

$result = wp_remote_post( $hook_url, apply_filters( 'ctz_post_request_args', $args ) );

to:

if (strripos($hook_url, ';') !== false) 
    $hook_urls = explode(';', $hook_url);
else $hook_urls = [$hook_url];
foreach ($hook_urls as $hook_url)
    $result = wp_remote_post( $hook_url, apply_filters( 'ctz_post_request_args', $args ) );

It is not perfect, but I would appreciate it if you could implement something like this in future versions.


Viewing all articles
Browse latest Browse all 59525

Trending Articles