Action hook 'enqueue_embed_scripts'

in WP Core File wp-includes/embed.php at line 1065

View Source

enqueue_embed_scripts

Action Hook
Description
Fires when scripts and styles are enqueued for the embed iframe.

Hook Information

File Location wp-includes/embed.php View on GitHub
Hook Type Action
Line Number 1065

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

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

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

Source Code Context

wp-includes/embed.php:1065 - How this hook is used in WordPress core
<?php
1060  	/**
1061  	 * Fires when scripts and styles are enqueued for the embed iframe.
1062  	 *
1063  	 * @since 4.4.0
1064  	 */
1065  	do_action( 'enqueue_embed_scripts' );
1066  }
1067  
1068  /**
1069   * Enqueues the CSS in the embed iframe header.
1070   *

PHP Documentation

<?php
/**
	 * Fires when scripts and styles are enqueued for the embed iframe.
	 *
	 * @since 4.4.0
	 */
Quick Info
  • Hook Type: Action
  • Parameters: 0
  • File: wp-includes/embed.php
Related Hooks

Related hooks will be displayed here in future updates.