Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Show Table of Contents

Override Custom Post Types

affiliate-toolkit registers some custom post types. Sometimes you may want to override certain parameters that are set by default.

Klicken Sie auf den unteren Button, um den Inhalt von developer.wordpress.org zu laden.

Inhalt laden

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');
ParameterDescription
argsContains the array which will be passed to the register_post_type function.
Return valueThe 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');
ParameterDescription
argsContains the array which will be passed to the register_post_type function.
Return valueThe 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');
ParameterDescription
argsContains the array which will be passed to the register_post_type function.
Return valueThe 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');
ParameterDescription
argsContains the array which will be passed to the register_post_type function.
Return valueThe 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');
ParameterDescription
argsContains the array which will be passed to the register_post_type function.
Return valueThe 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!
Learn more about the packagesDownload FREE Version
Still need help?
Submit Your Question
Please give us the details, our support team will get back to you.
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram