Cracked it! I think.
What I’ve done is basically change the script to look for custom posts types instead of the regular POST.
Sooooo…
in wp-content/plugins/category-subscriptions/includes/category_subscriptions_class.php
find & change
$categories = get_categories(array(...
to
$categories = get_categories(array('hierarchical' => 1, 'hide_empty' => 0, 'taxonomy' => 'my-custom-categories',));
This line appears twice. I changed both lines and on my user profile I now have a list of my CUSTOM categories instead of the regular categories. THAT was the easy bit. It took me a while to figure out the rest.
find & change
'post_type' => 'post'
to
'post_type' => 'my-custom-post-type'
And lastly (this took me HOURS to figure out… because I’m a noobie)
find & change
$categories = wp_get_post_categories($post->ID);
to
$mycustomcategories = get_the_terms( $post->ID, 'my-custom-categories' );
foreach( $mycustomcategories as $term ) {
$categories [0] = $term->term_taxonomy_id;
// Get rid of the other data stored in the object
unset($term);
}
… because wp_get_post_categories
ONLY works with POSTS, so you have to use get_the_terms
if you want to work with CUSTOM POSTS!
After I did this I ran a test…
and I received an email from the Category Subscriptions plugin informing me of a CUSTOM POST! YAY!
??