wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
rest_pre_insert_comment › Les Filtres WordPress
Depuis4.8.0
Dépréciéen/a
› apply_filters( 'rest_pre_insert_comment', $prepared_comment, $request )
| Paramètres: (2) |
|
| Défini(e) dans: | |
| 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.Fonctions en relation: wp_insert_comment, get_page_of_comment, wp_list_comments, get_previous_comments_link, wp_filter_comment, wp_insert_attachment
Hooks en relation: rest_insert_comment, rest_after_insert_comment, wp_insert_comment, rest_pre_insert_user, rest_prepare_comment