Textpattern CMS support forum
call a method in a callback
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.
Last edited by NicolasGraph (2017-03-31 15:39:57)
Re: call a method in a callback
etc wrote #305173:
'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.