layers_after_single_content

Since: 1.0.7 Last Updated:
Back to Main Index

Outputs your custom code after the_content() ‘s wrapper and before the post meta on the single post.

Location: partials/content-single.php

Code output appears after:

Code output appears before:

Usage:

This hook can be useful if you want to insert custom code, such as a sharing bar, between the content and the post meta. This example introduces a Facebook Like button that automatically grabs the post’s ID in the feed. You could also use code snippets from addthis.com or sharethis.com in combination with enqueueing their scripts.