Comment-Meta doesn’t work with latest wordpress update
Comment-Meta doesn’t work with latest wordpress update
Comment-Meta doesn’t work with latest wordpress update
Simply check if the comment has a parent before decrementing points. Reading the Codex entry for the get_comment() function, you’ll note that in the manner you use the function you will be returned an object containing keys that correspond to the column names of the wp_comments table. Viewing the wp_comments scehma, note that there is … Read more
wp-editor-area textarea disapear on cancel-comment-reply-link click
Yes, you can pass the post ID you want to target to WordPress’ comment_form() method. Here’s a good write up on the comment_form() method and here’s the codex page on it.
Comments – Ensure the correct field is highlighted for nested replies
spacebar is not working in input and textarea
There’s an action called trashed_post_comments that runs right after the comments are set to post-trashed status. You could hook into that: add_action( ‘trashed_post_comments’, ‘wpse134528_really_trash_comments’ ); function wpse134528_really_trash_comments( $post_id ) { $args = array( ‘post_id’ => $post_id, ‘status’ => ‘post-trashed’, ); $comments = get_comments( $args ); foreach( $comments as $comment ) { wp_trash_comment( $comment->comment_id ); } … Read more
Turn off comments for given CPT checkbox?
It turns out there was an issue with the minification of some things on my site. Disabling/clearing the cache seemed to have solved the issue.
The transition_comment_status action will get called whenever the status of a comment changes from one thing to another thing, regardless of what those things are. If you don’t want it to take action when going from trashed to approved, you need to recognize when the $old_status is trashed and not take action at that point … Read more