embed_content_meta

The WordPress Core embed content meta hook.

Description

add_action( 'embed_content_meta', (string) $print_embed_comments_button ); 

Parameters (1)

0. $print_embed_comments_button (string) => 'print_embed_comments_button'
The print embed comments button.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'embed_content_meta', $print_embed_comments_button ); 
The following example is for adding a hook callback.
  1. // define the embed_content_meta callback 
  2. function action_embed_content_meta( $print_embed_comments_button ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'embed_content_meta', 'action_embed_content_meta', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'embed_content_meta', 'action_embed_content_meta', 10, 1 ); 

Defined (3)

The action is defined in the following location(s).

/wp-includes/default-filters.php  
  1. add_action( 'embed_content_meta', 'print_embed_comments_button' ); 
  1. add_action( 'embed_content_meta', 'print_embed_sharing_button' ); 
/wp-includes/theme-compat/embed-content.php  
  1. do_action( 'embed_content_meta');