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

Question / Issue

I only have 3 templates in the tool but how do I get the others out that are then listed in the shortcode selection? Simply delete via the database?

Answer / Solution

You can't delete the templates, however you can easily hide the templates via hook.

With this hook, only custom templates will be displayed, making it easier for the editor to find a template.

function atkp__modify_template_list(  $templates, $add_systemdir, $is_searchform ) {
 
     $newtemplates = array();
     
     foreach($templates as $template => $val) {
          if(is_numeric($template))
                $newtemplates[$template] = $val;
     }
     
    return $newtemplates;
}
add_filter( 'atkp_template_list', 'atkp__modify_template_list', 10, 3);
Updated: 6. February 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