我正在尋找一個wordpress插件,允許管理員創建表單並將該表單提交到自定義url。我使用聯繫表單7,但它不允許這種類型的功能。wordpress表單插件,允許在表單動作中提供自定義url
我發現的唯一解決方案是創建自定義表單或使用聯繫表單7鉤子來獲取發佈數據並通過捲髮調用將該數據發送到自定義網址。
請更好的解決方案??
使用這個小忍者掛鉤,但不工作:
function ninja_forms_handler() {
add_action ('ninja_forms_post_process', 'change_ninja_forms_landing_page', 1, 2);
}
add_action('init', 'ninja_forms_handler');
function change_ninja_forms_landing_page(){
global $ninja_forms_processing;
$form_id = $ninja_forms_processing->get_form_ID();
$ninja_forms_processing->update_form_setting('landing_page', 'test.php');
}
}