Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme hooks. Do you use them? I'm considering removing them. Would welcome feedback. #32

Open
alana-mullen opened this issue Mar 10, 2020 · 0 comments
Labels

Comments

@alana-mullen
Copy link
Member

I'm considering removing custom theme hooks, for example:
do_action( 'cornerstone_before_content' );

I'd like to get an idea of how you use them and more importantly, if you use them. One option is to replace them with hooks from the Theme Hook Alliance so that your plugins are not tied to the theme.

A few months ago I removed cornerstone_after_body hook and replaced it with the new theme hook wp_body_open(). Even if we keep the custom theme hooks for now, I will be replacing them with official WordPress theme hooks as they become available.

Let me know your thoughts below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant