Pick elements in get_post_type_object
-
I’m using buddypress which is not as smart as WP at handling URL–
Users on my site can post items, the name of items are used as part of the URL.
So, it’d be a problem if somebody want to post an item with a name of “edit” or “my-events”, … those are already part of the URL on my site.Luckily, all those posible bad names are in the array of get_post_type_object();
The problem is, get_post_type_object has some elements are arrays itself.
I need help to pick an array of “bad_names” from the get_post_type_object array. Then, I can use the “bad_name” array to validate user’s input.
Thanks for helping!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Pick elements in get_post_type_object’ is closed to new replies.