Since: 1.0 Last Updated:
Back to Main Index

Outputs your custom code after an instance of a post featured image displayed using the layers_post_featured_media()  tag.

Location: core/helpers/template.php

Code output appears before:



This hook is useful for inserting code after the featured image or video (assuming layers_post_featured_media()  is used to output the image or video ). It should be used in combination with conditional statements to ensure your code only appears before featured images in specific places, or a custom post type in your extension. otherwise you must ensure your code does not interfere with images and video in Layers builder widgets. This example demonstrates how you might build a custom likes extension and output the likes code after the featured image in posts using this hook.

In combination with layers_before_featured_media :