Tag Info

Hot answers tagged

4

When we post an empty anonymous reply, we get the following errors: The part of BBPress that's responsible for handling this, is the bbp_new_reply_handler() function, in the file /bbpress/includes/replies/functions.php. It contains these lines that are of interest to us: // User is anonymous if ( bbp_is_anonymous() ) { // Filter ...


2

After checking out the code, the best way to do this would be to use the wp_editor_settings filter in /wp-includes/class-wp-editor.php. When you call wp_editor() it internally makes a call to _WP_Editors::editor($content, $editor_id, $settings);. This function first passes the $settings array through parse_settings() which uses that filter. add_filter( ...


2

parent : Comments can be replies to other comments. Every comment has an ID number. When the comment is a reply, then it will have a "parent" which is the ID of the comment it is replying to. Putting a comment ID in here will get all the replies to that comment. post_parent : Posts can be children of other posts as well. This is how things like hierarchical ...


2

Open comments.php file inside your theme's folder <?php if ( comments_open() ) : ?> <?php $fields = array( 'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name', 'responsive' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '<input id="author" ...


1

Easiest way to handle hiding the display is to use css. Your "reply to" form is probably displayed inside of a comment div or has some class identifying it as a comment reply. You still might need to handle the check on the server side to make the rating field to be not required when a comment has a parent comment.


1

You can use filters in custom functions to modify the default output of the comments form via your child themes functions file. Modify the comment form "Leave a reply" text. add_filter( 'comment_form_defaults', 'wpsites_modify_comment_form_title' ); function wpsites_modify_comment_form_title( $defaults ) { $defaults['title_reply'] = __( 'Leave a Comment' ...


1

Emails are sent to site admin(settings->general E-mail Address) when you check the email me option . No need to worry if you un-check that assuming you are not using any plugins that overrides.


1

You'd probably have to do this in javascript, but I'm guessing the reason you want to add a class is to style it differently? If so, just use different styles for #respond that is inside a reply container. So perhaps the style would be .comment-replies > #respond or something similar.



Only top voted, non community-wiki answers of a minimum length are eligible