Plugin compatible with Meta Box with ajax and select-advanced field
- Download zip and place it on plugins folder
- Activate plugin
array(
'name' => 'Name of your field',
'id' => '_id_of_your_field',
'type' => 'select_advanced_ajax',
'sanitize_callback' => 'none',
'js_options' => array (
'ajax' => array(
'url' => '/wp-admin/admin-ajax.php',
'dataType' => 'json',
'type' => 'post',
'data' => [
'action' => 'get_my_items', // You need to create your own action
],
'delay' => '250',
),
'minimumInputLength' => 0,
'allowClear' => true,
'placeholder' => 'Selectionner un filtre',
),
),
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.