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?
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);
You are currently viewing a placeholder content from Facebook. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou need to load content from hCaptcha to submit the form. Please note that doing so will share data with third-party providers.
More InformationYou need to load content from reCAPTCHA to submit the form. Please note that doing so will share data with third-party providers.
More InformationYou need to load content from reCAPTCHA to submit the form. Please note that doing so will share data with third-party providers.
More InformationYou need to load content from reCAPTCHA to submit the form. Please note that doing so will share data with third-party providers.
More InformationYou need to load content from Turnstile to submit the form. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from Instagram. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from X. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More Information