ldd-business-directory

Descripción

Este plugin ha sido cerrado el 23 de octubre de 2019 y no está disponible para descargar. Motivo: Violación de las directrices.

Reseñas

8 de febrero de 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); } } }
Leer todas las 13 reseñas

Colaboradores y desarrolladores

«LDD Business Directory» es un software de código abierto. Las siguientes personas han colaborado con este plugin.

Colaboradores

Traduce «LDD Business Directory» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.