affiliate-toolkit registers some custom post types. Sometimes you may want to override certain parameters that are set by default.
Field group
function atkp_fieldgroup_register_post_type_callback( $args ) {
//$args hält das Array welches an register_post_type übergeben wird
//$args['description'] = 'Mein Beschreibungstext';
return $args ;
}
add_filter( 'atkp_fieldgroup_register_post_type', 'atkp_fieldgroup_register_post_type_callback');
Parameter
Description
args
Contains the array which will be passed to the register_post_type function.
Return value
The modified array.
List
function atkp_list_register_post_type_callback( $args ) {
//$args hält das Array welches an register_post_type übergeben wird
//$args['description'] = 'Mein Beschreibungstext';
return $args ;
}
add_filter( 'atkp_list_register_post_type', 'atkp_list_register_post_type_callback');
Parameter
Description
args
Contains the array which will be passed to the register_post_type function.
Return value
The modified array.
Product
function atkp_product_register_post_type_callback( $args ) {
//$args hält das Array welches an register_post_type übergeben wird
//$args['description'] = 'Mein Beschreibungstext';
return $args ;
}
add_filter( 'atkp_product_register_post_type', 'atkp_product_register_post_type_callback');
Parameter
Description
args
Contains the array which will be passed to the register_post_type function.
Return value
The modified array.
Store
function atkp_shop_register_post_type_callback( $args ) {
//$args hält das Array welches an register_post_type übergeben wird
//$args['description'] = 'Mein Beschreibungstext';
return $args ;
}
add_filter( 'atkp_shop_register_post_type', 'atkp_shop_register_post_type_callback');
Parameter
Description
args
Contains the array which will be passed to the register_post_type function.
Return value
The modified array.
Template
function atkp_template_register_post_type_callback( $args ) {
//$args hält das Array welches an register_post_type übergeben wird
//$args['description'] = 'Mein Beschreibungstext';
return $args ;
}
add_filter( 'atkp_template_register_post_type', 'atkp_template_register_post_type_callback');
Parameter
Description
args
Contains the array which will be passed to the register_post_type function.
Return value
The modified array.
Updated: 2. March 2023
Still not using affiliate-toolkit?
Setup takes less than 5 minutes and you can start to import first products!
Instantly import affiliate products from all supported affiliate networks within seconds. By using other networks and using automatic price comparisons, you increase the sales of your websites. And the best: The plugin works with any theme!