You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actions API has an awesome collection of functionality that lets us do a smart add, modify, remove, replace, and reset. These functions truly are the missing components for the WordPress Plugin API.
Let's enhance the Filters API to add all of these functions.
I propose:
Adding a Hooks API and rolling both the Actions and Filters into this one API.
Moving the private functions into either class to hide away the complexity.
Removing the global variable $_beans_registered_actions.
Creating a container within the new class that replaces the global $_beans_registered_actions.
Refactoring like functionality between the actions and filter.
Removing _Beans_Anonymous_Actions and _Beans_Anonymous_Filters (needed for PHP 5.2)
Replacing those classes with closures.
Moving the existing code into the new (not yet built) Beans v1.5 plugin, which provides the backwards-compatibility for child themes running on Beans < 2.0.
The text was updated successfully, but these errors were encountered:
I'd also suggest that we build it as a module and then submit it to Composer. This will allow non-Beans powered sites to utilize the Beans Hooks API.
Seriously, this is a really cool API and the missing functionality within Core. I think the WordPress Community is going to want this baby even if they are not using a Beans powered theme.
Actions API has an awesome collection of functionality that lets us do a smart add, modify, remove, replace, and reset. These functions truly are the missing components for the WordPress Plugin API.
Let's enhance the Filters API to add all of these functions.
I propose:
$_beans_registered_actions
.$_beans_registered_actions
._Beans_Anonymous_Actions
and_Beans_Anonymous_Filters
(needed for PHP 5.2)The text was updated successfully, but these errors were encountered: