- fixed form duplicate and PHP notice about empty mode;

- fixed first install and login/registration forms custom fields;
This commit is contained in:
Mykyta Synelnikov
2024-04-24 17:50:52 +03:00
parent 005dabad1b
commit 1409de3eb4
3 changed files with 142 additions and 17 deletions
+3
View File
@@ -1809,6 +1809,9 @@ if ( ! class_exists( 'um\admin\Admin' ) ) {
'post_title' => sprintf( __( 'Duplicate of %s', 'ultimate-member' ), get_the_title( $post_id ) ),
'post_status' => 'publish',
'post_author' => get_current_user_id(),
'meta_input' => array(
'_um_mode' => get_post_meta( $post_id, '_um_mode', true ),
),
);
$n_id = wp_insert_post( $n );