Add some do_action()
-
Is it possible to add some do_action in the plugin code ?
For example, in include/admin.php at line 427 i added a
do_action("polylang_register_string", $this);
So my others plugins could register some strings which i’m able to modify in the Strings tab of Polylang.
I think it’ll be a good thing for polylang to be more integrated with external plugins.
So the others plugins writer has just to add something like this in their code:
add_action("polylang_register_string", array(&$this, 'add_strings')); public function add_strings($polylang) { $polylang->register_string(__("Hello"), "World"); }
to have the string translated.
Thanks in advance
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Add some do_action()’ is closed to new replies.