Delete). * * By default nothing is removed: the links between translations, the * language strings and the settings stay, so installing the plugin again * brings everything back. Only with "Remove all Blocklingo data when the * plugin is deleted" (Settings > Blocklingo > Content and sync) are the * tables and settings dropped. Posts, their translations and header/footer * copies always stay - they are content. */ defined( 'WP_UNINSTALL_PLUGIN' ) || exit; $blocklingo_settings = get_option( 'blocklingo_settings', array() ); if ( ! is_array( $blocklingo_settings ) || empty( $blocklingo_settings['uninstall']['delete_data'] ) ) { return; } global $wpdb; $wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}blocklingo_translations" ); // phpcs:ignore $wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}blocklingo_strings" ); // phpcs:ignore $wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}blocklingo_string_translations" ); // phpcs:ignore $wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE '\_transient\_blocklingo\_%' OR option_name LIKE '\_transient\_timeout\_blocklingo\_%'" ); // phpcs:ignore delete_option( 'blocklingo_settings' ); delete_option( 'blocklingo_db_version' ); delete_post_meta_by_key( '_blocklingo_old_path' );