Skip to content

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

Description

@alana-mullen

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions