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
What is the recommended way to add actions and filters on the front end? Is there a "default" route that executes on every request or a way to say "every route except wp-admin"? I'd hate to think that we have to add lines to plugin.php. That seems like a hack, but I can't figure out where else to do that. Thanks in advance.
The text was updated successfully, but these errors were encountered:
In herbert.config.php, under the requires section, include a file inside your app called actionsAndFilters.php. Then add your actions and filters there and voila, you are now loading actions and filters when your plugin runs. Very nice.
What is the recommended way to add actions and filters on the front end? Is there a "default" route that executes on every request or a way to say "every route except wp-admin"? I'd hate to think that we have to add lines to plugin.php. That seems like a hack, but I can't figure out where else to do that. Thanks in advance.
The text was updated successfully, but these errors were encountered: