Clean up customize_changeset in DB

No, there is not a way to disable customize_changeset posts from being created. These customize_changeset posts are created with the auto-draft status in the same way that a post gets created with the auto-draft status whenever you click on “Add New” in the admin. Note that because the auto-draft status is used, any such posts … Read more

Form display in new page

Try to create a new page and put [elh-db-insert] as content. If you want to use [insert-into-db] as your shorcode, you should change add_shortcode(‘elh-db-insert’, ‘elh_insert_into_db’); to add_shortcode(‘insert-into-db’, ‘elh_insert_into_db’);

How to get specific table by current user login

Note that you may need to use WPDB::prepare() to prevent against SQL injections. Although, it might be arguable in your specific case… // If the query does not work, ensure the table name is correct… $table = $wpdb->prefix . ‘SaveContactForm7_1’; $reservations = $wpdb->get_results( $wpdb->prepare( “SELECT * FROM $table WHERE user = %s”, $username ) ); … Read more