Enable admin to enter installation date on delivery process:

:
This commit is contained in:
Almira Krdzic
2018-11-05 18:18:44 +01:00
parent c23e570399
commit dd53584d20
11 changed files with 221 additions and 102 deletions

View File

@@ -121,4 +121,13 @@ function wiaas_db_update_update_delivery_forms() {
$created_forms[] = GFAPI::get_form($sample_form_id);
do_action('gform_forms_post_import', $created_forms);
}
function wiaas_db_update_add_installation_date_delivery_action_form() {
$action_form_json = file_get_contents( dirname( __FILE__ ) . '/data/delivery-forms/delivery-action-enter-installation-date.json' );
$action_form_meta = json_decode( $action_form_json, true )[0];
do_action('gform_forms_post_import', GFAPI::add_form($action_form_meta));
}