wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
rest_pre_insert_comment › WordPress Filter Hooks
Da4.8.0
Deprecaton/a
› apply_filters( 'rest_pre_insert_comment', $prepared_comment, $request )
Parametri: (2) |
|
Definito a: | |
Codex: |
Filters a comment before it is inserted via the REST API.
Allows modification of the comment right before it is inserted via wp_insert_comment(). Returning a WP_Error value from the filter will short-circuit insertion and allow skipping further processing.
Funzioni correlate: wp_insert_comment, get_page_of_comment, wp_list_comments, wp_insert_attachment, wp_new_comment, wp_filter_comment