Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

Dev: Override post type of the plugin

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.

Product Post type

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');

List Post type

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');

Shop Post type

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');

Field group Post type

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');

Template Post type

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');

Importset Post type

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');
Updated: 9. October 2022
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