I am working on a function set that will add a piece to each custom post type on a site. Since I won't know what CPTs are registered, I wrote a function to get them all (simple). However, I now need to create a function for each value in an array (a small settings page) to properly finish this off.
here's my array example:
$types = array ('type_a', 'type_b', 'type_c');
so I basically want to generate a function called
type_b_page, etc within the same overall class.
I realized this code is only a small part and doesn't explain why I'm trying to achieve this. Here is the code base in it's entirety https://gist.github.com/4687698