I am trying to create a meta box (with the same feature as the category meta box, the one that searches categories) , except I want to make one that searches a custom category.
I’m hoping that I can rely on a predefined callback function that will work with custom categories.
I tried the method from this article but to no avail:
add_meta_box(
'metaboxID',
"Meta box Title",
'myCustomPostType_myCustomCategory_meta_box',
'myCustomPostType',
'side',
'high'
);
When using add_meta_box
, is there a predefined callback function for custom categories, such as post_categories_meta_box
?