Edit Comments Fields
Edit Comments Fields
Edit Comments Fields
I would use an url parameter to define which products are shown, and update the page contents either by javascript or php.
Not sure it’s the shortest way, but it works) Get post author id $post_author_id = get_post_field( ‘post_author’, $c->comment_post_ID ); Get author data by id $post_author_display_name = get_the_author_meta( ‘display_name’, $post_author_id ); Try this shorter version $output.= get_the_author_meta( ‘display_name’, get_post_field( ‘post_author’, $c->comment_post_ID ) ); Check documentation page which data is available with get_the_author_meta()
comment just attachment .. reply just text … can I do that?
The text, “You must be logged in to post a comment.” comes from this line in WordPress: https://github.com/WordPress/WordPress/blob/efaf4a8938bbeb8510c8e1e4cc6fe84a434c17c3/wp-includes/comment-template.php#L2449 Whenever you see something wrapped in the double underscore function __( ), it means it’s a translatable string. You can use a function like this and add it to your themes functions.php file: add_filter(‘gettext’, ‘change_comment_logged_in_notice’, 20, 3); … Read more
How do I make the comment disappear after deleting from the database?
Cannot Remove Title Reply from Custom Comment Template for Signup Page
COMMENT FORM Error: Please type your comment text
How to send add_comment_meta value from separate file to main plugin file?
Your code has 2 major issues: It’s missing a return $fields; or a return value — Filter callbacks must always return something, which is normally the first parameter after it’s filtered (regardless it’s actually modified or not by your callback). Do not call comment_form() because comment_form_fields is fired in that function, hence you’ll run into … Read more