Skip to main content
added additional info per request of comment to the question.
Source Link
Rick Hellewell
  • 7.1k
  • 2
  • 21
  • 41

Looking for the filter hook for the admin/comments/reply to process (where you use 'reply to' in the comments administration screen). This will be used in a custom plugin.

(The plugin adds a hidden field to a front-end entered comment to reduce bot-entered comments. The extra field is inserted properly on the front end, but not in the admin comment list page.)

I need to

  • add a hidden field to the comment drop-down on the comments admin list (the comment field that shows when you click the 'reply' link for a comment).
  • add some pre-processing to the comment drop-down when it is submitted and before WP processes the comment.

Not sure where to start on this, although I think it is in https://developer.wordpress.org/reference/files/wp-admin/includes/class-wp-comments-list-table.php/ .

Am I on the right track? Is there a filter for the adding of fields to the comment box form that is on the admin/comments page?

(Note: had posted this question in StackExchange main area by mistake. And got a down-vote and close vote without explanation for my efforts. So duplicating the question here - where I meant to put it.)

Added

The hidden field is added to the comment form on the front end with the 'add_meta_boxes_comment' action hook, which uses the 'add_meta_box' function to specify the field and the callback function for that inserted/hidden field.

The hidden/added field is processed via the 'edit_comment' hook. If the hidden field is not there, then the comment is not saved.

This works fine in the front-end, but the hidden/added field is not added to the comment form in the back-end's "Reply" on the comment list page.

Looking for the filter hook for the admin/comments/reply to process (where you use 'reply to' in the comments administration screen). This will be used in a custom plugin.

(The plugin adds a hidden field to a front-end entered comment to reduce bot-entered comments. The extra field is inserted properly on the front end, but not in the admin comment list page.)

I need to

  • add a hidden field to the comment drop-down on the comments admin list (the comment field that shows when you click the 'reply' link for a comment).
  • add some pre-processing to the comment drop-down when it is submitted and before WP processes the comment.

Not sure where to start on this, although I think it is in https://developer.wordpress.org/reference/files/wp-admin/includes/class-wp-comments-list-table.php/ .

Am I on the right track? Is there a filter for the adding of fields to the comment box form that is on the admin/comments page?

(Note: had posted this question in StackExchange main area by mistake. And got a down-vote and close vote without explanation for my efforts. So duplicating the question here - where I meant to put it.)

Looking for the filter hook for the admin/comments/reply to process (where you use 'reply to' in the comments administration screen). This will be used in a custom plugin.

(The plugin adds a hidden field to a front-end entered comment to reduce bot-entered comments. The extra field is inserted properly on the front end, but not in the admin comment list page.)

I need to

  • add a hidden field to the comment drop-down on the comments admin list (the comment field that shows when you click the 'reply' link for a comment).
  • add some pre-processing to the comment drop-down when it is submitted and before WP processes the comment.

Not sure where to start on this, although I think it is in https://developer.wordpress.org/reference/files/wp-admin/includes/class-wp-comments-list-table.php/ .

Am I on the right track? Is there a filter for the adding of fields to the comment box form that is on the admin/comments page?

(Note: had posted this question in StackExchange main area by mistake. And got a down-vote and close vote without explanation for my efforts. So duplicating the question here - where I meant to put it.)

Added

The hidden field is added to the comment form on the front end with the 'add_meta_boxes_comment' action hook, which uses the 'add_meta_box' function to specify the field and the callback function for that inserted/hidden field.

The hidden/added field is processed via the 'edit_comment' hook. If the hidden field is not there, then the comment is not saved.

This works fine in the front-end, but the hidden/added field is not added to the comment form in the back-end's "Reply" on the comment list page.

Source Link
Rick Hellewell
  • 7.1k
  • 2
  • 21
  • 41

Filter for admin (back end) 'reply to' comment

Looking for the filter hook for the admin/comments/reply to process (where you use 'reply to' in the comments administration screen). This will be used in a custom plugin.

(The plugin adds a hidden field to a front-end entered comment to reduce bot-entered comments. The extra field is inserted properly on the front end, but not in the admin comment list page.)

I need to

  • add a hidden field to the comment drop-down on the comments admin list (the comment field that shows when you click the 'reply' link for a comment).
  • add some pre-processing to the comment drop-down when it is submitted and before WP processes the comment.

Not sure where to start on this, although I think it is in https://developer.wordpress.org/reference/files/wp-admin/includes/class-wp-comments-list-table.php/ .

Am I on the right track? Is there a filter for the adding of fields to the comment box form that is on the admin/comments page?

(Note: had posted this question in StackExchange main area by mistake. And got a down-vote and close vote without explanation for my efforts. So duplicating the question here - where I meant to put it.)