comment_edit_pre хук-фильтрWP 2.0.0

Filters the comment content before editing.

Использование

add_filter( 'comment_edit_pre', 'wp_kama_comment_edit_pre_filter' );

/**
 * Function for `comment_edit_pre` filter-hook.
 * 
 * @param string $comment_content Comment content.
 *
 * @return string
 */
function wp_kama_comment_edit_pre_filter( $comment_content ){

	// filter...
	return $comment_content;
}
$comment_content(строка)
Comment content.

Список изменений

С версии 2.0.0 Введена.

Где вызывается хук

get_comment_to_edit()
comment_edit_pre
WP_Comments_List_Table::column_comment()
comment_edit_pre
wp-admin/includes/comment.php 127
$comment->comment_content = apply_filters( 'comment_edit_pre', $comment->comment_content );
wp-admin/includes/class-wp-comments-list-table.php 952
$comment_content = apply_filters( 'comment_edit_pre', $comment->comment_content );

Где используется хук в WordPress

Использование не найдено.