wenprise / wp-meta-filter
Filter data by metadata in wordpress admin post/data list page
0.0.2
2020-11-14 09:30 UTC
Requires
- nette/utils: *
This package is auto-updated.
Last update: 2025-03-12 20:33:03 UTC
README
Filter data by metadata in wordpress admin post/data list page
install
composer require wenprise/wp-meta-filter
usage
$deals = new Wenprise\MetaFilter\PostFilter(); $deals->set_post_type('client') ->set_meta_key('_deal_price') ->set_query_var('deal') ->set_header('成交金额大于') ->set_compare('>') ->set_options([ 0 => '0(已成交)', 10000 => '10000 元', 20000 => '20000 元', ]);