为嵌入共享按钮打印必要的标记。
原型
print_embed_sharing_button()
源文件
路径:wp-includes/embed.php
<?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
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/print_embed_sharing_button/