prefix from the database */ $table_names_array = array( "bnd_country", "bnd_data_sync", "bnd_delivery_zone", "bnd_discount_coupon", "bnd_sequence", "bnd_tag_item", "bnd_tag", "bnd_modifier", "bnd_modifier_group_item", "bnd_modifier_group", "bnd_option_item", "bnd_option", "bnd_attribute", "bnd_item_group", "bnd_item_tax_rate", "bnd_item_category", "bnd_item_image", "bnd_item", "bnd_category", "bnd_merchant", "bnd_message_template", "bnd_opening_hours", "bnd_order_customer", "bnd_order_line_item", "bnd_order_payment", "bnd_order", "bnd_order_type", "bnd_tax_rate", "bnd_user_address", "bnd_notification", "bnd_customer_profile" ); $page_names_array = array( "bnd-login", "bnd-forgot-password", "bnd-my-order", "bnd-profile", "bnd-profile-address", "bnd-signup", "bnd-verification", "bnd-logout", "bnd-coming-soon", "bnd-contact-us", "bnd-faq", "bnd-maintenance", "bnd-not-found", "bnd-privacy", "bnd-terms", "bnd-favorites", "bnd-menuhome", "bnd-menuitems", "bnd-cart-display", "bnd-offers", "bnd-search", "bnd-checkout", "bnd-order-status", "bnd-successful", "bnd-trackorder" ); foreach($table_names_array as $table) { // drop the table from the database. $wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}{$table}" ); } foreach($page_names_array as $page) { $post = get_page_by_path($page); wp_delete_post($post->ID, true); } delete_option("bnd_settings");