comment_text
comment_text
Appears in: gutenberg.13.2.0, gutenberg.13.4.0, gutenberg.13.5.0, gutenberg.13.5.2, gutenberg.13.6.0, gutenberg.13.7.1, gutenberg.13.8.2, gutenberg.13.9.0, gutenberg.14.0.2, gutenberg.14.0.3, gutenberg.14.2.0, gutenberg.14.3.1, gutenberg.14.4.0, gutenberg.14.5.0, gutenberg.14.5.3, gutenberg.14.6.1, gutenberg.14.7.0, gutenberg.14.8.4, gutenberg.15.1.0, gutenberg.15.2.1, gutenberg.15.2.2, gutenberg.15.2.4, gutenberg.15.3.1, gutenberg.15.4.0, gutenberg.15.6.2, gutenberg.15.7.0, gutenberg.15.7.1, gutenberg.15.8.0, gutenberg.15.9.0, gutenberg.16.1.0, gutenberg.16.2.1, gutenberg.16.5.1, gutenberg.16.6.0, gutenberg.16.8.1, gutenberg.16.9.0, gutenberg.17.0.2, gutenberg.17.1.2, gutenberg.17.2.3, gutenberg.17.3.0, gutenberg.17.4.1, gutenberg.17.5.0, gutenberg.17.5.2, gutenberg.17.6.5, gutenberg.17.7.0, gutenberg.17.8.0, gutenberg.17.8.2, gutenberg.17.9.0, gutenberg.18.2.0, gutenberg.18.5.0, gutenberg.18.6.1, gutenberg.18.7.1, gutenberg.18.9.0, gutenberg.19.0.0, gutenberg.19.1.0, gutenberg.19.2.0, gutenberg.19.4.0, gutenberg.19.6.1, gutenberg.19.6.4, wordpress-4.0, wordpress-4.4, wordpress-4.8, wordpress-4.9, wordpress-4.9.4, wordpress-4.9.5, wordpress-4.9.6, wordpress-4.9.7, wordpress-4.9.8, wordpress-5.0, wordpress-5.0.1, wordpress-5.0.2, wordpress-5.0.3, wordpress-5.1, wordpress-5.1.1, wordpress-5.2, wordpress-5.2.1, wordpress-5.2.2, wordpress-5.2.3, wordpress-5.2.4, wordpress-5.3, wordpress-5.3.1, wordpress-5.3.2, wordpress-5.4, wordpress-5.4.1, wordpress-5.4.2, wordpress-5.5, wordpress-5.5.1, wordpress-5.5.2, wordpress-5.5.3, wordpress-5.6, wordpress-5.6.1, wordpress-5.6.2, wordpress-5.7, wordpress-5.7.1, wordpress-5.7.2, wordpress-5.8, wordpress-5.8.1, wordpress-5.8.2, wordpress-5.8.3, wordpress-5.9, wordpress-5.9.1, wordpress-5.9.2, wordpress-5.9.3, wordpress-6.0, wordpress-6.0.1, wordpress-6.0.2, wordpress-6.0.3, wordpress-6.1, wordpress-6.1.1, wordpress-6.2, wordpress-6.2.1, wordpress-6.2.2, wordpress-6.3, wordpress-6.3.1, wordpress-6.3.2, wordpress-6.4, wordpress-6.4.1, wordpress-6.4.2, wordpress-6.4.3, wordpress-6.5, wordpress-6.5.2, wordpress-6.5.3, wordpress-6.5.4, wordpress-6.5.5, wordpress-6.6, wordpress-6.6.1, wordpress-6.6.2, wordpress-6.7
Hook Type: filter
See hook in action
Displaying hooks found in version: wordpress-6.7apply_filters('comment_text') is found 4 times:
- /wp-includes/blocks/comment-content.php line 37
return ''; } /** This filter is documented in wp-includes/comment-template.php */ $comment_text = apply_filters( 'comment_text', $comment_text, $comment, $args ); $moderation_note = ''; if ( '0' === $comment->comment_approved ) { $commenter = wp_get_current_commenter(); if ( $commenter['comment_author_email'] ) {
- /wp-includes/comment-template.php line 1094
* @param string $comment_text Text of the comment. * @param WP_Comment|null $comment The comment object. Null if not found. * @param array $args An array of arguments. */ echo apply_filters( 'comment_text', $comment_text, $comment, $args ); } /** * Retrieves the comment time of the current comment. * * @since 1.5.0
- /wp-includes/comment.php line 48
return false; } /** This filter is documented in wp-includes/comment-template.php */ $comment = apply_filters( 'comment_text', $comment, null, array() ); // Check for the number of external links if a max allowed number is set. $max_links = get_option( 'comment_max_links' ); if ( $max_links ) { $num_links = preg_match_all( '/<a [^>]*href/i', $comment, $out );
- /wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php line 1094
if ( in_array( 'content', $fields, true ) ) { $data['content'] = array( /** This filter is documented in wp-includes/comment-template.php */ 'rendered' => apply_filters( 'comment_text', $comment->comment_content, $comment, array() ), 'raw' => $comment->comment_content, ); } if ( in_array( 'link', $fields, true ) ) { $data['link'] = get_comment_link( $comment );