print_embed_comments_button

Prints the necessary markup for the embed comments button.

Description

print_embed_comments_button(); 

Usage

  1. if ( !function_exists( 'print_embed_comments_button' ) ) { 
  2. require_once ABSPATH . WPINC . '/embed.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = print_embed_comments_button(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/embed.php  
  1. function print_embed_comments_button() { 
  2. if ( is_404() || ! ( get_comments_number() || comments_open() ) ) { 
  3. return; 
  4. ?> 
  5. <div class="wp-embed-comments"> 
  6. <a href="<?php comments_link(); ?>" target="_top"> 
  7. <span class="dashicons dashicons-admin-comments"></span> 
  8. <?php 
  9. printf( 
  10. _n
  11. '%s <span class="screen-reader-text">Comment</span>',  
  12. '%s <span class="screen-reader-text">Comments</span>',  
  13. ),  
  14. ); 
  15. ?> 
  16. </a> 
  17. </div> 
  18. <?php