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

Override template

To overwrite the templates, you can use a hook. This allows you, for example, to redirect the previous default template to your own template.

General function

This function is called for products. You can use it to overwrite the template based on conditions, for example.

function atkp_modifiy_template_callback( $template ) {
	//Vorlage hier übersteuern:
	//$template = 'wide';

	return $template ;
}
add_filter( 'atkp_modify_template', 'atkp_modifiy_template_callback');

List

This function is called for lists, products and search forms. You can use it to overwrite the template based on conditions, for example.

function atkp_modify_template_list_callback( $template, $id, $content ) {

	return $template ;
}
add_filter( 'atkp_modify_template_list', 'atkp_modify_template_list_callback', 10, 3);

Product

This function is called for lists. You can use it to overwrite the template based on conditions, for example.

function atkp_modify_template_product_callback( $template, $id, $content ) {

	return $template ;
}
add_filter( 'atkp_modify_template_product', 'atkp_modify_template_product_callback', 10, 3);
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