Custom Post Type filter hook not working
-
I have a custom post type called “event” that I’m trying to add using your instructions. Added this to my theme’s
functions.php
:function usp_modify_post_type($post_type) { return 'event'; } add_filter('usp_post_type', 'usp_modify_post_type');
However, in the plugin settings under “post type” I still only see “WP Post” and “WP Page” listed.
The path for the admin edit page for this CPT is
/wp-admin/edit.php?post_type=event
, so I believe I have the slug correct, although I triedevents
as well for good measure.I am using the plugin “Very Simple Event List”, which is where the CPT is coming from.
I am using latest version of User Submitted Posts (Version 9.9).
How do I allow posts of this custom post type to be submitted?
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘Custom Post Type filter hook not working’ is closed to new replies.