acf_form_comment::__construct │ public │ ACF 5.0.0

This function will setup the class functionality

Метод класса: acf_form_comment{}

Хуков нет.

Возвращает

n/a.

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

$acf_form_comment = new acf_form_comment();
$acf_form_comment->__construct();

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

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

Код acf_form_comment::__construct() ACF 6.8.11

function __construct() {

	// actions
	add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );

	// render
	add_filter( 'comments_open', array( $this, 'remember_comment_form_post' ), PHP_INT_MAX, 2 );
	add_filter( 'comment_form_field_comment', array( $this, 'comment_form_field_comment' ), 999, 1 );

	// add_action( 'comment_form_logged_in_after',       array( $this, 'add_comment') );
	// add_action( 'comment_form',                       array( $this, 'add_comment') );
	// save
	add_action( 'edit_comment', array( $this, 'save_comment' ), 10, 1 );
	add_action( 'comment_post', array( $this, 'save_comment' ), 10, 1 );
}