jankx/global-filter 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jankx/global-filter

Composer 安装命令:

composer require jankx/global-filter

包简介

Create the AJAX filter for WooCommerce

README 文档

README

Create filters via Elementor

<?php
use Jankx\Elementor\Widgets\Abstracts\PostTypeFilters;

class ProjectFilters extends PostTypeFilters
{
    protected $filters = array();

    public function get_name()
    {
        return 'project_filters';
    }

    public function get_title()
    {
        return __('Project Filters', 'jankx');
    }

    protected function filters()
    {
        return array(
            'project_style' => array(
                'type' => 'taxonomy',
                'taxonomy' => 'project_style',
                'label' => __('Style'),
                'display_type' => 'select'
            ),
            'project_type' => array(
                'type' => 'taxonomy',
                'taxonomy' => 'project_type',
                'label' => __('Loại hình'),
                'display_type' => 'select'
            ),
            'project_areage' => array(
                'type' => 'post_meta',
                'meta_key' => '_project_areage',
                'options' => array(
                    '0-100' => 'dưới 100m2',
                    '100-200' => '100 - 200m2',
                    '200-300' => '200 - 300m2',
                    '300-400' => '300 - 400m2',
                    '400+' => 'trên 400m2',
                ),
                'label' => __('Areage'),
                'display_type' => 'select'
            )
        );
    }
}

统计信息

  • 总下载量: 79
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-04-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固