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

Manipulate generated HTML

You can use a hook to edit the output. This way you can e.g. output a fallback text for an empty template.

Listen

function atkp_modify_output_list_callback( $output, $products, $template ) {

	return $output ;
}
add_filter( 'atkp_modify_output_list', 'atkp_modify_output_list_callback', 10, 3);
ParameterDescription
outputThe generated HTML which will be output.
productsThe products (aktp_product) which were used in the list.
templateTemplate ID or template name (if from the file system).
Return valueThe overridden HTML.

Products

function atkp_modify_output_product_callback( $output, $product, $template ) {

	return $output ;
}
add_filter( 'atkp_modify_output_product', 'atkp_modify_output_product_callback', 10, 3);
ParameterDescription
outputThe generated HTML which will be output.
productThe product (aktp_product) which is displayed.
templateTemplate ID or template name (if from the file system).
Return valueThe overridden HTML.

Search form

function atkp_modify_output_searchform_callback( $output, $template ) {

	return $output ;
}
add_filter( 'atkp_modify_output_searchform', 'atkp_modify_output_searchform_callback', 10, 2);
ParameterDescription
outputThe generated HTML which will be output.
templateTemplate ID or template name (if from the file system).
Return valueThe overridden HTML.
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