Forked from kjohnson/ninja-forms-webhooks-auth.php
Last active
April 12, 2019 19:28
-
-
Save bryceroney/cc2c5203d8e8630cff24761879c7a608 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Ninja Forms - Content Type Header | |
*/ | |
add_filter( 'nf_remote_post_args', 'nf_add_content_type_headers' ); | |
function nf_add_content_type_headers( $args ){ | |
$headers = array( | |
'headers' => array( | |
'Content-Type' => 'application/json' | |
) | |
); | |
$args = array_merge( $args, $headers ); | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi dear, how include this in ninjaform webhook?
I try with custom plugin but i have this error:```