print_embed_sharing_button
Prints the necessary markup for the embed sharing button.
Description
print_embed_sharing_button();
Usage
if ( !function_exists( 'print_embed_sharing_button' ) ) { require_once ABSPATH . WPINC . '/embed.php'; } // NOTICE! Understand what this does before running. $result = print_embed_sharing_button();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/embed.php
- function print_embed_sharing_button() {
- if ( is_404() ) {
- return;
- }
- ?>
- <div class="wp-embed-share">
- <button type="button" class="wp-embed-share-dialog-open" aria-label="<?php esc_attr_e( 'Open sharing dialog' ); ?>">
- <span class="dashicons dashicons-share"></span>
- </button>
- </div>
- <?php