PHP code example of oberonlai / wp-admin-custom-filter
1. Go to this page and download the library: Download oberonlai/wp-admin-custom-filter library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
oberonlai / wp-admin-custom-filter example snippets
use ODS\CustomFilter;
$options = array( ... );
$books = new CustomFilter( $options );
// Require the Composer autoloader.
mFilter;
$option = array(
'name' => 'send_status', // form select name
'key' => 'meta_key', // post meta field name
'compare' => '=', // the compare rule
'posttype' => 'cptname', // which post type support with
'option' => array( // dropdown menu
'all' => __( 'ALL', ''),
'option1' => __( 'Option1', ''),
'option2' => __( 'Option2', ''),
)
);
new CustomFilter( $option );
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.