Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 8.36.1
- This topic has 3 replies, 2 voices, and was last updated 7 years, 6 months ago by
Steven Zahm.
-
AuthorPosts
-
01/23/2019 at 7:11 pm #482498
sebastien xtrem
ParticipantHi
Do you have basic solution for remove all entry before update
Thanks
01/23/2019 at 7:37 pm #482506Steven Zahm
Keymaster@ sebastien
Sorry, but I am not certain what you are asking. Could you please provide more details?
01/23/2019 at 7:42 pm #482508sebastien xtrem
ParticipantHI
how are you
Do you have soluttion for remoel all entry after import by exemple
Because if I need remove is very long because 1700 entry and I wand import clean entry by csv
Thnaks
01/24/2019 at 10:50 am #482548Steven Zahm
Keymaster@ sebastien
There is a way but there is not a point and click way of doing this. Here’s how:
- Install the Code Snippets plugin.
- Add a new snippet with the following code.
- Save and Active the code snippet with the Only run once option selected.
- After the snippet runs all the data from Connections will be erased. *This operation can not be undone. Use with caution. This snippet can be run any time you wish to delete all the Connections data.
code snippet
add_action( 'plugins_loaded', 'cn_empty_tables' ); function cn_empty_tables() { global $wpdb; $wpdb->query( 'TRUNCATE TABLE ' . CN_ENTRY_TABLE ); $wpdb->query( 'TRUNCATE TABLE ' . CN_ENTRY_ADDRESS_TABLE ); $wpdb->query( 'TRUNCATE TABLE ' . CN_ENTRY_PHONE_TABLE ); $wpdb->query( 'TRUNCATE TABLE ' . CN_ENTRY_EMAIL_TABLE ); $wpdb->query( 'TRUNCATE TABLE ' . CN_ENTRY_MESSENGER_TABLE ); $wpdb->query( 'TRUNCATE TABLE ' . CN_ENTRY_SOCIAL_TABLE ); $wpdb->query( 'TRUNCATE TABLE ' . CN_ENTRY_LINK_TABLE ); $wpdb->query( 'TRUNCATE TABLE ' . CN_ENTRY_DATE_TABLE ); $wpdb->query( 'TRUNCATE TABLE ' . CN_ENTRY_TABLE_META ); $wpdb->query( 'TRUNCATE TABLE ' . CN_TERM_RELATIONSHIP_TABLE ); $wpdb->query( 'TRUNCATE TABLE ' . CN_TERMS_TABLE ); $wpdb->query( 'TRUNCATE TABLE ' . CN_TERM_TAXONOMY_TABLE ); $wpdb->query( 'TRUNCATE TABLE ' . CN_TERM_META_TABLE ); }Hope this helps!
-
This reply was modified 7 years, 6 months ago by
Steven Zahm.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
