Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Adding new core template function #114

Merged
merged 3 commits into from
Apr 1, 2019
Merged

Conversation

ryanwelcher
Copy link
Contributor

A new template tag is being added in 5.2 that will replace our current after_body hook.

https://core.trac.wordpress.org/ticket/12563

This PR adds a call to it as well as a shim for backwards compatibility with older versions of core.

@ryanwelcher ryanwelcher added the Enhancement New feature or request label Mar 28, 2019
@samikeijonen
Copy link
Contributor

Another option is directly add do_action( 'wp_body_open' ); like mention in wp_body_open blog post.

@timwright12
Copy link
Contributor

@ryanwelcher I added an issue for you to toss this in the plugin scaffold as well 10up/plugin-scaffold#83

@timwright12 timwright12 merged commit d23393d into master Apr 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants