В моем файле functions.php у меня есть что-то вроде следующего (из гравитационных форм):
add_action('gform_after_submission_500', 'post_to_third_party', 10, 2);
function post_to_third_party($entry, $form) {
$post_url = THEME_DIR . '/myscript/index.php';
$body = array(
'first_name' => $entry['1'],
'last_name' => $entry['2'],
'email' => $entry['3']
);
$request = new WP_Http();
$response = $request->post($post_url, array('body' => $body));
}
Что я должен иметь в «myscript/index.php», чтобы получить данные сообщения, чтобы я мог их использовать?
$_REQUEST
- person tonoslfx   schedule 24.01.2015