This plugin has been closed as of October 23, 2019 and is not available for download. Reason: Guideline Violation.


February 8, 2017
After install this plugin while i Uninstall it I lost all my Media attachment like images, video and docs of my wordpress website so First time I don't get reason Why i lost my images and file which was i uploaded in media, I check all things and Lastly I found that Reason and check this plugins "uninstall.php" file so, please Remove Some Function from "uninstall.php" as below if you want, and then Uninstall it... Please Find this "ldl_uninstall_attachments();" and delete or comment it or find below function and delete it or comment it also function ldl_uninstall_attachments() { global $wpdb; $query = sprintf(" SELECT ID FROM %s WHERE post_type = '%s' AND post_status NOT IN ( 'auto-draft', 'inherit' ) ", $wpdb->posts, LDDLITE_POST_TYPE); $post_ids = $wpdb->get_col($query); if (!$post_ids) return; $post_ids = implode(',', $post_ids); $attachments = get_posts(array( 'post_type' => 'attachment', 'posts_per_page' => -1, 'post_status' => 'any', 'post_parent_in' => $post_ids, 'no_found_rows' => true, )); if ($attachments) { foreach ($attachments as $attachment) { wp_delete_attachment($attachment->ID); } } }
Read all 13 reviews

Contributors & Developers

“LDD Business Directory” is open source software. The following people have contributed to this plugin.