HEX
Server: Apache
System: Linux 4801f1b1.ptr.provps.com 6.17.8-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 13 18:02:25 EST 2025 x86_64
User: nassaugo (1004)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/nassaugo/www/wp-content/plugins/wp-all-import-pro/actions/delete_post.php
<?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();
        }
        // Delete entries from the hash table when posts are deleted.
        $hashRecord = new PMXI_Hash_Record();
        $hashRecord->getBy(['post_id' => $post_id, 'post_type' => 'post'])->isEmpty() or $hashRecord->delete();
    }
}