

wp-content/plugins/product-category-dropdowns/Block/Selector.php
lines 74-75

Specify category ids on the line:
  $excludeCategoryIds = array(15, 56, 12);


Alternative solution:
To allow only certain categories use the following code:

  $rootCategories = array_keys($rootCategories);
    
  $allowCategoryIds = array(15, 56, 12);
  $rootCategories = array_values(array_intersect($rootCategories, $allowCategoryIds));
  
  
  