astra_comment_form_default_markup( array $args )
Function filter comment form arguments
Description
Parameters
- $args
-
(array) (Required) Comment form arguments.
Return
(array)
Source
File: inc/markup-extras.php
function astra_comment_form_default_markup( $args ) { /** * Filter to enabled Astra comment for all Post Types where the commnets are enabled. * * @since 1.5.0 * * @return bool */ $all_post_type_support = apply_filters( 'astra_comment_form_all_post_type_support', false ); if ( 'post' == get_post_type() || $all_post_type_support ) { $args['id_form'] = 'ast-commentform'; $args['title_reply'] = astra_default_strings( 'string-comment-title-reply', false ); $args['cancel_reply_link'] = astra_default_strings( 'string-comment-cancel-reply-link', false ); $args['label_submit'] = astra_default_strings( 'string-comment-label-submit', false ); $args['comment_field'] = '<div class="ast-row comment-textarea"><fieldset class="comment-form-comment"><div class="comment-form-textarea ' . astra_attr( 'ast-grid-lg-12' ) . '"><label for="comment" class="screen-reader-text">' . esc_html( astra_default_strings( 'string-comment-label-message', false ) ) . '</label><textarea id="comment" name="comment" placeholder="' . esc_attr( astra_default_strings( 'string-comment-label-message', false ) ) . '" cols="45" rows="8" aria-required="true"></textarea></div></fieldset></div>'; } return apply_filters( 'astra_comment_form_default_markup', $args ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |