wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
print_embed_comments_button › WordPress Function
Depuis4.4.0
Dépréciéen/a
› print_embed_comments_button ( Pas de paramètres )
Défini(e) dans: |
|
Codex: |
Prints the necessary markup for the embed comments button.
Fonctions en relation: print_embed_sharing_button, print_embed_scripts, paginate_comments_links, print_embed_styles, wp_admin_bar_comments_menu
Source
function print_embed_comments_button() { if ( is_404() || ! ( get_comments_number() || comments_open() ) ) { return; } ?> <div class="wp-embed-comments"> <a href="<?php comments_link(); ?>" target="_top"> <span class="dashicons dashicons-admin-comments"></span> <?php printf( /* translators: %s: Number of comments. */ _n( '%s <span class="screen-reader-text">Comment</span>', '%s <span class="screen-reader-text">Comments</span>', get_comments_number() ), number_format_i18n( get_comments_number() ) ); ?> </a> </div> <?php }