Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
call a method in a callback
Hi,
Is there a way to do something like that:
register_callback('Class::method()', 'plugin_lifecycle.abc_plugin', 'enabled');
I get the following error when enabling the plugin:
Sorry, the form could not be submitted. Please try again later.
Thanks…
Last edited by NicolasGraph (2017-03-31 15:39:57)
Offline
Re: call a method in a callback
Hi Nicolas, 'Class::method'
(without parentheses) should work in php 5.3+, though I haven’t tested.
Offline
Re: call a method in a callback
etc wrote #305173:
Hi Nicolas,
'Class::method'
(without parentheses) should work in php 5.3+, though I haven’t tested.
Ok, I can’t make it work for now; I’ll investigate next week. Thanks Oleg.
Offline
Offline
Pages: 1