How to show terms used only for particular custom post type. Filter creation perpose
You need to send param post_id in ajax of data. Then in your plugin parse it and and search by taxomony. My simple example: <?php // in ajax handler // get post_id from requst data $post_id = filter_var($_POST[‘post_id’], FILTER_VALIDATE_INT); // find post $post = get_post($post_id); But before you need register the taxomony. register_taxonomy(‘auto’, array($post->post_type), array( … Read more