X7ROOT File Manager
Current Path:
/home/gfecatvj/4abetter.us/wp-content/plugins/kubio/lib/api
home
/
gfecatvj
/
4abetter.us
/
wp-content
/
plugins
/
kubio
/
lib
/
api
/
📁
..
📄
colibri.php
(13.69 KB)
📄
contact-form.php
(1.91 KB)
📄
entity.php
(683 B)
📄
get-body-class.php
(586 B)
📄
get-classic-page-template.php
(647 B)
📄
get-page-query.php
(1.52 KB)
📄
get-page-title.php
(393 B)
📄
get-post-content.php
(1.17 KB)
📄
get-post-styles.php
(859 B)
📄
index.php
(807 B)
📄
kubio-cloud.php
(2.05 KB)
📁
multilanguage
📄
page-templates.php
(640 B)
📁
recommendations
📄
save-template-parts-filter.php
(2.11 KB)
📄
subscribe-form.php
(1.06 KB)
📄
typekit.php
(866 B)
📄
update-settings-flags.php
(3.13 KB)
Editing: get-page-query.php
<?php use IlluminateAgnostic\Arr\Support\Arr; use Kubio\Core\Utils; add_action( 'template_redirect', function () { // phpcs:ignore WordPress.Security.NonceVerification.Recommended if ( Arr::has( $_REQUEST, '__kubio-page-query' ) && Utils::canEdit() ) { $cats = array_unique( array_merge( array( get_query_var( 'cat', null ) ), get_query_var( 'category__in', array() ) ) ); foreach ( $cats as $index => $cat ) { if ( ! $cat ) { unset( $cats[ $index ] ); } } $tags = array_unique( array_merge( array( get_query_var( 'tag_id', null ) ), get_query_var( 'tag__in', array() ) ) ); foreach ( $tags as $index => $tag ) { if ( ! $tag ) { unset( $tags[ $index ] ); } } $post_type = get_query_var( 'post_type', '' ); if ( ! $post_type ) { $post_type = 'post'; } $vars = array( 'offset' => 0, 'categoryIds' => $cats, 'postType' => $post_type, 'tagIds' => $tags, 'order' => strtolower( get_query_var( 'order', 'desc' ) ), 'orderBy' => strtolower( get_query_var( 'orderBy', 'date' ) ), 'author' => get_query_var( 'author', 0 ), 'search' => get_query_var( 's', '' ), // phpcs:ignore WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude 'exclude' => get_query_var( 'post__not_in', array() ), 'sticky' => '', 'perPage' => intval( get_option( 'posts_per_page', 10 ) ), ); return wp_send_json_success( $vars ); } }, PHP_INT_MAX );
Upload File
Create Folder