Creating a plugin for Polylang
-
Hi,
I’m trying to develop a plugin for Polylang and I have a question. How can I get the main Polylang object to use its model in the plugin? This is a rough draft of the code I’m using:
class PolylangPlugin { public $model; public function __construct($polylang) { $this->model = &$polylang->model; } } new PolylangPlugin( ????????? );
Any help would be appreciated
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Creating a plugin for Polylang’ is closed to new replies.