Hi @gabums !
Sorry, I had a lot of work and totally forget this thread. Hopefully you ask it again ?? !
To have a lot of template content processed through the plugin :
1. Let’s say the template is “mytemplate.php”. Create a new PHP file and call it like you want (here I call it “tobetranslated.php”).
2. Put the PHP of “mytemplate.php” that need to be processed in “tobtranslated.php”.
3. Replace that content (in “mytemplate.php”) by this piece of code :
<?php
$dictionary = Explanatory_Dictionary::get_instance();
$content = load_template_part($template_path, $template_name);
echo $dictionary->add_explanatory_dictionary_words($content);
?>
load_template_part($template_path, $template_name) : First argument is the path (folder etc), second argument is the name of the file (here “tobetranslated.php”)
ATTENTION : everything in “tobetranslated.php” will be processed. So If you have register the word “test” in the admin and you have a HTML class which is class=”test”, the class will be processed and so the HTML will be wrong !
Tell me if it works ??
Have a nice day !
Cédric