Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webook URL Validation #1

Closed
ncko opened this issue May 7, 2019 · 2 comments
Closed

Webook URL Validation #1

ncko opened this issue May 7, 2019 · 2 comments

Comments

@ncko
Copy link

ncko commented May 7, 2019

With WP Webhooks, I am experiencing a similar problem to this one: woocommerce/woocommerce#9751

@Ironikus
Copy link
Owner

Ironikus commented May 7, 2019

Hey, thanks for mentioning that!
Did you try it with the temporary fix they provided within the other issue?
You can also set the argument only for the wp_safe_remote_request function of WP Webhooks (and Pro) as follows:

add_filter( 'wpwhpro/admin/webhooks/webhook_http_args', function( $args ) {
    $args['reject_unsafe_urls'] = false;

    return $args;
}, 10, 1);

Alternatively you can pass two more arguments: $args (which returns the parsed arguments) and $url (Which parses the URL the webhook gets sent to).

Hope this helps!

@ncko
Copy link
Author

ncko commented May 8, 2019

I did and it worked. Thank you so much.

@ncko ncko closed this as completed May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants