Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bryceroney/cc2c5203d8e8630cff24761879c7a608 to your computer and use it in GitHub Desktop.
Save bryceroney/cc2c5203d8e8630cff24761879c7a608 to your computer and use it in GitHub Desktop.
<?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;
}
@Manoah1988
Copy link

Hi dear, how include this in ninjaform webhook?
I try with custom plugin but i have this error:```


> Ooops! This add-on is not yet compatible with Ninja Forms THREE. To know more.
> 
> Ninja-forms-webhooks-header / ninja-forms-webhooks-header.php has been deactivated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment