comment_form_title

Advertisement

Summery Summery

Displays text based on comment reply status.

Syntax Syntax

comment_form_title( string $noreplytext = false, string $replytext = false, string $linktoparent = true )

Description Description

Only affects users with JavaScript disabled.

Parameters Parameters

$noreplytext

(Optional) Text to display when not replying to a comment.

Default value: false

$replytext

(Optional) Text to display when replying to a comment. Accepts "%s" for the author of the comment being replied to.

Default value: false

$linktoparent

(Optional) Boolean to control making the author's name a link to their comment.

Default value: true

Source Source

File: wp-includes/comment-template.php

 *
 * Only affects users with JavaScript disabled.
 *
 * @internal The $comment global must be present to allow template tags access to the current
 *           comment. See https://core.trac.wordpress.org/changeset/36512.
 *
 * @since 2.7.0
 *
 * @global WP_Comment $comment Global comment object.
 *
 * @param string $no_reply_text  Optional. Text to display when not replying to a comment.
 *                               Default false.
 * @param string $reply_text     Optional. Text to display when replying to a comment.
 *                               Default false. Accepts "%s" for the author of the comment
 *                               being replied to.
 * @param string $link_to_parent Optional. Boolean to control making the author's name a link
 *                               to their comment. Default true.
 */
function comment_form_title( $no_reply_text = false, $reply_text = false, $link_to_parent = true ) {
	global $comment;

	if ( false === $no_reply_text ) {

Advertisement

Changelog Changelog

Changelog
Version Description
2.7.0 Introduced.

Advertisement

Leave a Reply