This article explains how to change order or remove some of the options in the Checkbox Popup:

mceclip0.png

 

You will need to add this code into your Child Theme functions.php ( Click Here to read more where to get it and how to use it )

add_filter('vehica/search/field/TAXONOMYID/terms', function() {
return [
\Vehica\Model\Term\Term::getById(TAGID1),
\Vehica\Model\Term\Term::getById(TAGID2),
];
});

 

In the above example you need to customize 2 things:

– TAXONOMYID

– TAGID

 

e.g.

add_filter('vehica/search/field/6670/terms', function() {
return [
\Vehica\Model\Term\Term::getById(2096),
\Vehica\Model\Term\Term::getById(2106),
];
});

 

To check TAXONOMYID please visit Vehica Panel, edit field and you will see it in the url

mceclip1.png

mceclip2.png

 

Here it is 6670

 

To check TAGID, please visit term page on backend and check ID in the url e.g.

mceclip3.png

mceclip4.png

 

Here it is 2096

 

so if e.g. you enter this code:

add_filter('vehica/search/field/6670/terms', function() {
return [
\Vehica\Model\Term\Term::getById(2096),
\Vehica\Model\Term\Term::getById(2106),
];
});

 

You will have option in the own order and limited to the options you added:

mceclip5.png