beans_comment_form_comment

Echo comment textarea field.

This function replaces the default WordPress comment textarea field.

beans_comment_form_comment( )

Return: (void)

Source

function beans_comment_form_comment() {

	$output = beans_open_markup( 'beans_comment_form[_comment]', 'p', array( 'class' => 'uk-margin-top' ) );

		/**
		 * Filter whether the comment form textarea legend should load or not.
		 *
		 * @since 1.0.0
		 */
		if ( beans_apply_filters( 'beans_comment_form_legend[_comment]', true ) ) {

			$output .= beans_open_markup( 'beans_comment_form_legend[_comment]', 'legend' );

				$output .= beans_output( 'beans_comment_form_legend_text[_comment]', __( 'Comment *', 'tm-beans' ) );

			$output .= beans_close_markup( 'beans_comment_form_legend[_comment]', 'legend' );

		}

		$output .= beans_open_markup( 'beans_comment_form_field[_comment]', 'textarea', array(
			'id'       => 'comment',
			'class'    => 'uk-width-1-1',
			'name'     => 'comment',
			'required' => '',
			'rows'     => 8,
		) );

		$output .= beans_close_markup( 'beans_comment_form_field[_comment]', 'textarea' );

	$output .= beans_close_markup( 'beans_comment_form[_comment]', 'p' );

	return $output;

}