Action hook 'embed_footer'

in WP Core File wp-includes/theme-compat/footer-embed.php at line 18

View Source

embed_footer

Action Hook
Description
Prints scripts or data before the closing body tag in the embed template.

Hook Information

File Location wp-includes/theme-compat/footer-embed.php View on GitHub
Hook Type Action
Line Number 18

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into embed_footer
add_action('embed_footer', 'my_custom_function');

function my_custom_function() {
    // Your custom code here
}

Source Code Context

wp-includes/theme-compat/footer-embed.php:18 - How this hook is used in WordPress core
<?php
  13  /**
  14   * Prints scripts or data before the closing body tag in the embed template.
  15   *
  16   * @since 4.4.0
  17   */
  18  do_action( 'embed_footer' );
  19  ?>
  20  </body>
  21  </html>

PHP Documentation

<?php
/**
 * Prints scripts or data before the closing body tag in the embed template.
 *
 * @since 4.4.0
 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-includes/theme-compat/footer-embed.php
Related Hooks

Related hooks will be displayed here in future updates.