acf_form_comment::remember_comment_form_post
Records the post comment_form() checks comments are open for, which is the post its form is for.
comment_form() can be given a post other than the global one, and its comment field filter isn't passed the post.
Метод класса: acf_form_comment{}
Хуков нет.
Возвращает
boolean.
Использование
$acf_form_comment = new acf_form_comment(); $acf_form_comment->remember_comment_form_post( $open, $post_id );
- $open(true|false) (обязательный)
- Whether comments are open.
- $post_id(int) (обязательный)
- The post ID.
Список изменений
| С версии 6.8.11 | Введена. |
Код acf_form_comment::remember_comment_form_post() acf form comment::remember comment form post ACF 6.8.11
public function remember_comment_form_post( $open, $post_id ) {
$this->comment_form_post_id = (int) $post_id;
return $open;
}