affiliate-toolkit registers some post types. Sometimes you want to override parameters that are set by default.
Here you can find how to override the Post types.
All information about the WP function at WordPress Codex.
This function is called for products.
/**
* This function is called before register_post_type for products.
*
* @param array $args Contains the arguments array which is passed to the register_post_type function.
* @return array Return of the array
*/
function atkp_product_register_post_type_callback( $args ) {
//$args['description'] = 'My Description';
return $args ;
}
add_filter( 'atkp_product_register_post_type', 'atkp_product_register_post_type_callback');
This function is called for lists.
/**
* This function is called before register_post_type for lists.
*
* @param array $args Contains the arguments array which is passed to the register_post_type function.
* @return array Return of the array
*/
function atkp_list_register_post_type_callback( $args ) {
//$args['description'] = 'My Description';
return $args ;
}
add_filter( 'atkp_list_register_post_type', 'atkp_list_register_post_type_callback');
This function is called for shops.
/**
* This function is called before register_post_type for shops.
*
* @param array $args Contains the arguments array which is passed to the register_post_type function.
* @return array Return of the array
*/
function atkp_shop_register_post_type_callback( $args ) {
//$args['description'] = 'My Description';
return $args ;
}
add_filter( 'atkp_shop_register_post_type', 'atkp_shop_register_post_type_callback');
This function is called for field groups.
/**
* This function is called before register_post_type for fieldgroups.
*
* @param array $args Contains the arguments array which is passed to the register_post_type function.
* @return array Return of the array
*/
function atkp_fieldgroup_register_post_type_callback( $args ) {
//$args['description'] = 'My Description';
return $args ;
}
add_filter( 'atkp_fieldgroup_register_post_type', 'atkp_fieldgroup_register_post_type_callback');
This function is called for templates.
/**
* This function is called before register_post_type for templates.
*
* @param array $args Contains the arguments array which is passed to the register_post_type function.
* @return array Return of the array
*/
function atkp_template_register_post_type_callback( $args ) {
//$args['description'] = 'My Description';
return $args ;
}
add_filter( 'atkp_template_register_post_type', 'atkp_template_register_post_type_callback');
This function is called at Importset.
/**
* This function is called before register_post_type for import sets.
*
* @param array $args Contains the arguments array which is passed to the register_post_type function.
* @return array Return of the array
*/
function atkp_importset_register_post_type_callback( $args ) {
//$args['description'] = 'My Description';
return $args ;
}
add_filter( 'atkp_importset_register_post_type', 'atkp_importset_register_post_type_callback');