Title: Custom code placement
Last modified: April 19, 2020

---

# Custom code placement

 *  [Lovro Hrust](https://wordpress.org/support/users/lovor/)
 * (@lovor)
 * [6 years ago](https://wordpress.org/support/topic/custom-code-placement/)
 * Hello, I am not asking for a help, but I propose enhancement:
 * since WP 5.2, a wp_body_open() hook exists for theme authors to put immediately
   after body tag, so plugin authors could use it to add code there.
 * Container code placement option “custom” in your plugin could be rewritten to
   use such a hook.
 * Would you like if I helped with that? I would also make code backwards compatible
   to pre – 5.2 users.
 * If you are interested in proposal, write me that you agree.
 * I will also translate the plugin to Croatian language, I see it is not yet translated,
   and such effort that you did put into it deserves it.
 * Stay well!
 * Lovro

Viewing 1 replies (of 1 total)

 *  Plugin Author [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * (@duracelltomi)
 * [6 years ago](https://wordpress.org/support/topic/custom-code-placement/#post-12711482)
 * Hi Lovro.
 * The “codeless” placement option already utilizes this feature of a WP 5.2 compatible
   theme 🙂

Viewing 1 replies (of 1 total)

The topic ‘Custom code placement’ is closed to new replies.

 * ![](https://ps.w.org/duracelltomi-google-tag-manager/assets/icon-256x256.png?
   rev=1708451)
 * [GTM4WP - A Google Tag Manager (GTM) plugin for WordPress](https://wordpress.org/plugins/duracelltomi-google-tag-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duracelltomi-google-tag-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/reviews/)

## Tags

 * [development](https://wordpress.org/support/topic-tag/development/)
 * [update](https://wordpress.org/support/topic-tag/update/)

 * 1 reply
 * 2 participants
 * Last reply from: [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/custom-code-placement/#post-12711482)
 * Status: not a support question