• 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 1 replies (of 1 total)
  • Plugin Author Mário Valney

    (@mariovalney)

    Hi Richard!
    Wonderful job.

    It’s indeed in my roadmap implement multiple webhooks and advanced data formatting. But I’m lack of time nowdays.

    Thanks for using my plugin!

Viewing 1 replies (of 1 total)
  • The topic ‘Plugin Modification’ is closed to new replies.