Issue with custom registered text-domain
-
Hi we did try to registered the new custom text-domain with below code and also ticked it in the setting page
add_filter(‘ttfp_domains’, ‘custom_ttfp_domains’, 10, 1);
function custom_ttfp_domains(array $domains) {
$domains[] = “custom-textdomain”;
return $domains;
}But we did not tick the scan for any theme in the setting.
Then we added the sample string in the theme header code.
<?php echo __(‘Hello there!’, ‘custom-textdomain’); ?>But we cannot seem to able to found or search the string “Hello there!” in the translation page.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Issue with custom registered text-domain’ is closed to new replies.