wp_comment_reply() – Outputs the in-line comment reply-to form in the Comments list table.

You appear to be a bot. Output may be restricted

Description

Outputs the in-line comment reply-to form in the Comments list table.

Usage

wp_comment_reply( $position, $checkbox, $mode, $table_row );

Parameters

$position
( int ) optional default: 1 – Optional. The value of the 'position' input field. Default 1.
$checkbox
( bool ) optional – Optional. The value of the 'checkbox' input field. Default false.
$mode
( string ) optional default: single – Optional. If set to 'single', will use WP_Post_Comments_List_Table, otherwise WP_Comments_List_Table. Default 'single'.
$table_row
( bool ) optional default: 1 – Optional. Whether to use a table instead of a div element. Default true.

Returns

void

Source

File name: wordpress/wp-admin/includes/template.php
Lines:

101 to 136 of 136
      <span class="waiting spinner"></span>
    </p>
    <?php
    wp_admin_notice(
      '<p class="error"></p>',
      array(
        'type'               => 'error',
        'additional_classes' => array( 'notice-alt', 'inline', 'hidden' ),
        'paragraph_wrap'     => false,
      )
    );
    ?>
	</div>

	<input type="hidden" name="action" id="action" value="" />
	<input type="hidden" name="comment_ID" id="comment_ID" value="" />
	<input type="hidden" name="comment_post_ID" id="comment_post_ID" value="" />
	<input type="hidden" name="status" id="status" value="" />
	<input type="hidden" name="position" id="position" value="<?php echo $position; ?>" />
	<input type="hidden" name="checkbox" id="checkbox" value="<?php echo $checkbox ? 1 : 0; ?>" />
	<input type="hidden" name="mode" id="mode" value="<?php echo esc_attr( $mode ); ?>" />
	<?php
    wp_nonce_field( 'replyto-comment', '_ajax_nonce-replyto-comment', false );
  if ( current_user_can( 'unfiltered_html' ) ) {
    wp_nonce_field( 'unfiltered-html-comment', '_wp_unfiltered_html_comment', false );
  }
  ?>
	</fieldset>
	<?php if ( $table_row ) : ?>
</td></tr></tbody></table>
	<?php else : ?>
</div></div>
	<?php endif; ?>
</form>
	<?php
}
 

 View on GitHub View on Trac