Allow custom directory to scan theme

[ad_1]

hello @bartbury,

curentlly function “get_files_from_dir($dir_name)” works recursively.

So files from the src and template directories should also be included.

If your theme has irregular domian, you can use filter: “ttfp_domains” to modify list of text domains and add your custom domian like:

add_filter('ttfp_domains', 'custom_ttfp_domains', 10, 1);
function custom_ttfp_domains(array $domains)
{
$domains[] = "my-custom-domain";
return $domains;
}

List of text domains is displayed on “TTfP Settings” page to select them for translation by polylang engine.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer