PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
plugins
/
wp-all-import
/
actions
<?php function pmxi_delete_post($post_id) { if (!empty($post_id) && is_numeric($post_id)){ $post = new PMXI_Post_Record(); $is_post = ! $post->getBy( 'post_id', $post_id )->isEmpty(); if ( $is_post ) { $post->delete(); } else { $image = new PMXI_Image_Record(); $image->getBy( 'attachment_id', $post_id )->isEmpty() or $image->delete(); } } }
[+]
..
[-] admin_notices.php
[edit]
[-] delete_post.php
[edit]
[-] admin_head.php
[edit]
[-] add_attachment.php
[edit]
[-] pmxi_after_xml_import.php
[edit]
[-] wp_ajax_dismiss_notifications.php
[edit]
[-] wp_ajax_auto_detect_sf.php
[edit]
[-] admin_menu.php
[edit]
[-] wp_ajax_delete_import.php
[edit]
[-] pmxi_before_xml_import.php
[edit]
[-] wp_ajax_import_failed.php
[edit]
[-] wp_ajax_auto_detect_cf.php
[edit]
[-] wpmu_new_blog.php
[edit]
[-] wp_ajax_test_images.php
[edit]
[-] admin_init.php
[edit]
[-] attachment_updated.php
[edit]