updated offers expiration hanling with separate checkbox for each 3 offers

This commit is contained in:
asus
2024-04-16 16:43:11 +02:00
parent d3e0fbb99e
commit 62dcaa7672
8 changed files with 72 additions and 145 deletions

View File

@@ -109,22 +109,23 @@ add_action('template_redirect', 'partner_form_creation_page_CIPF');
* actions after partner form is validated
*
*/
function partner_after_form_CIPF($form_id, $post_array, $form_type) {
Plgntls::debug_infos(2);
$form_partner_id = Cipf::FORM_PARTNER_PAGE_ID;
if ($form_partner_id !== $form_id) {
return;
}
Plgntls::debug_infos();
// error_log("form_id: " . json_encode($form_id));
// error_log("post_array: " . json_encode($post_array));
// error_log("form_type: " . json_encode($form_type));
$post_id = $post_array['ID'];
}
add_action('df_after_process', 'partner_after_form_CIPF', 10, 3);
//function partner_after_form_CIPF($form_id, $post_array, $form_type) {
// Plgntls::debug_infos(2);
// $form_partner_id = Cipf::FORM_PARTNER_PAGE_ID;
//
// if ($form_partner_id !== $form_id) {
// return;
// }
// Plgntls::debug_infos();
//
//// error_log("form_id: " . json_encode($form_id));
//// error_log("post_array: " . json_encode($post_array));
//// error_log("form_type: " . json_encode($form_type));
//
// // should protect : if post creation there will not be an ID
// $post_id = $post_array['ID'];
//}
//add_action('df_after_process', 'partner_after_form_CIPF', 10, 3);