acf_form_attachment::__construct()publicACF 5.0.0

__construct

This function will setup the class functionality

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

Хуков нет.

Возвращает

null. Ничего (null).

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

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

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

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

Код acf_form_attachment::__construct() ACF 6.0.4

function __construct() {

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

	// render
	add_filter( 'attachment_fields_to_edit', array( $this, 'edit_attachment' ), 10, 2 );

	// save
	add_filter( 'attachment_fields_to_save', array( $this, 'save_attachment' ), 10, 2 );

}