- added 'um_form_version' postmeta for make the legacy functionality in the future;

This commit is contained in:
Mykyta Synelnikov
2023-09-13 16:54:12 +03:00
parent 887dfa4428
commit 4ea341007f
@@ -1181,6 +1181,9 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) {
return;
}
// Set post meta for legacy support in the future.
add_post_meta( $post_id, 'um_form_version', UM_VERSION );
if ( empty( $_POST['post_title'] ) ) {
$where = array( 'ID' => $post_id );
// translators: %s: Form id.