Hi, I am trying to use the frm_api_request_args
filter and I have to prepare the payload for it. Which means changing the body for the request. The problem is the password field is removed. I tried adding this:
add_action( 'rest_api_init', 'init_include_password_in_api' );
function init_include_password_in_api() {
add_filter( 'frm_include_field_in_content', 'bs_include_password_in_api', 10, 2 );
}
function bs_include_password_in_api( $include, $field_value ) {
if ( 'blueshoon_pw' === $field_value->get_field_key() ) {
$include = true;
}
return $include;
}
But this doesn't provide access in the frm_api_request_args
hook. Is there way to accomplish this?
Where are you using frm_api_request_args in your code? Please use pastebin or gist to post all of your code. What you posted above makes no sense in the context of frm_api_request_args.
Please login or Register to submit your answer