Closed websupporter closed 1 year ago
Before:
$ wp plugin activate wp-search-ignore-block-names
Warning: Failed to activate plugin. The plugin generated unexpected output.
Success: Plugin already activated.
After:
$ wp plugin activate wp-search-ignore-block-names
Plugin 'wp-search-ignore-block-names' activated.
Success: Activated 1 of 1 plugins.
Thank you so much for explaining!
I've merged the PR #8 from @mustafauysal with the same changes.
Ah! cool. I didnt see @mustafauysal PR. :ok_hand:
Actions need to be callables.
Like a function:
For a static method in a class:
For a normal method in a class, you need to provide a concrete instance of that class:
Additionally: All methods you use for a hook must be public.
This PR attempts to fix some issues in the 6-prevent-activation branch.