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 form comment:: construct ACF 5.9.1
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 );
}