Uses
Uses | Description |
---|---|
wp-includes/l10n.php: esc_attr_e() | Display translated text that has been escaped for safe use in an attribute. |
wp-includes/query.php: is_404() | Determines whether the query has resulted in a 404 (returns no results). |
Prints the necessary markup for the embed sharing button.
File: 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 }
Version | Description |
---|---|
4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/print_embed_sharing_button