5.9.Changing post type arguments
Altering WPPizza custom post type and taxonomy labels and arguments
there are several filters you can use to change the WPPizza custom post type as well as taxonomies labels, arguments. Please refer to WordPress codex regarding register_posttype and register_taxonomy.
wppizza_filter_cpt_lbls
filter wppizza custom post type lables
@param: array (labels of custom post type)
@return: array
example:
add_filter('wppizza_filter_cpt_lbls', 'my_custom_cpt_lables'); function my_custom_cpt_lables($labels){ /* set your labels as you see fit */ return $labels; }
wppizza_filter_cpt_args
filter wppizza custom post type arguments
@param: array (arguments of custom post type)
@return: array
example:
add_filter('wppizza_filter_cpt_args', 'my_custom_cpt_args'); function my_custom_cpt_args($args){ /* set your arguments as you see fit */ return $args; }
wppizza_filter_ctx_lbls
filter wppizza taxonomy labels
@param: array (labels of taxonomies)
@return: array
example:
add_filter('wppizza_filter_ctx_lbls', 'my_custom_tax_lables'); function my_custom_tax_lables($labels){ /* set your labels as you see fit */ return $labels; }
wppizza_filter_ctx_args
filter wppizza taxonomy arguments
@param: array (arguments of wppizza taxonomies)
@return: array
example:
add_filter('wppizza_filter_ctx_args', 'my_custom_tax_args'); function my_custom_tax_args($args){ /* set your argumentsas you see fit */ return $args; }
documentor id 5