evolve_comment_reply

The evolve evolve comment reply function.

Description

evolve_comment_reply( (constant) $return = false ); 

Parameters (1)

0. $return — Optional. (constant) => false
The return.

Usage

  1. if ( !function_exists( 'evolve_comment_reply' ) ) { 
  2. require_once '/library/functions/pluggable.php'; 
  3.  
  4. // The return. 
  5. $return = false; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = evolve_comment_reply($return); 
  9.  

Defined (1)

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

/library/functions/pluggable.php  
  1. function evolve_comment_reply($return = false) { 
  2. global $comment_depth; 
  3. $max_depth = get_option('thread_comments_depth'); 
  4. $reply_text = apply_filters('evolve_reply_text', (string) 'Reply'); // Available filter: evolve_reply_text 
  5. $login_text = apply_filters('evolve_login_text', (string) 'Log in to reply.'); // Available filter: evolve_login_text 
  6. if (( get_option('thread_comments') ) && get_comment_type() == 'comment') { 
  7.  
  8. if ($return) { 
  9. return get_comment_reply_link(array( 
  10. 'reply_text' => $reply_text,  
  11. 'login_text' => $login_text,  
  12. 'depth' => $comment_depth,  
  13. 'max_depth' => $max_depth,  
  14. 'before' => '<span class="comment-reply">',  
  15. 'after' => '</span>' 
  16. )); 
  17. } else { 
  18. comment_reply_link(array( 
  19. 'reply_text' => $reply_text,  
  20. 'login_text' => $login_text,  
  21. 'depth' => $comment_depth,  
  22. 'max_depth' => $max_depth,  
  23. 'before' => '<div class="comment-reply">',  
  24. 'after' => '</div>' 
  25. ));