print_embed_sharing_button()WP 4.4.0

Prints the necessary markup for the embed sharing button.

Хуков нет.

Возвращает

null. Ничего (null).

Использование

print_embed_sharing_button();

Список изменений

С версии 4.4.0 Введена.

Код print_embed_sharing_button() WP 6.5.2

<?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
}