acf_form_comment::__construct()
__construct
This function will setup the class functionality
Метод класса: acf_form_comment{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$acf_form_comment = new acf_form_comment(); $acf_form_comment->__construct();
Список изменений
С версии 5.0.0 | Введена. |
Код acf_form_comment::__construct() acf form comment:: construct ACF 6.0.4
function __construct() { // actions add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) ); // render 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 ); }