Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : claqxcrl ( 523)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /home/claqxcrl/confenda.com/wp-content/plugins/wp-event-partners/admin/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/claqxcrl/confenda.com/wp-content/plugins/wp-event-partners/admin/includes/functions.php
<?php

function wep_pass_query_parameters($postPerPage = 5, $postType, $order_by='title', $order='DESC', $tax_query=false, $taxonomy='', $terms=''){

    $paged = get_query_var('paged') ? get_query_var('paged') : 1;

    if($tax_query){
        $args = [
            'posts_per_page' => $postPerPage,
            'post_type' => $postType,
            'orderby' => $order_by,
            'order' => $order,
            'post_status'=>'publish',
            'paged'=>$paged,
            'tax_query' => [
                [
                    'taxonomy' => $taxonomy,
                    'field' => 'slug',
                    'terms' => $terms
                ]
            ]
        ];
    }else{
        $args = [
            'posts_per_page' => $postPerPage,
            'post_type' => $postType,
            'orderby' => $order_by,
            'order' => $order,
            'post_status'=>'publish',
            'paged'=>$paged,

        ];

    }
    return $args;
}


ZeroDay Forums Mini