acf_form_attachment::__construct() public ACF 5.0.0
This function will setup the class functionality
{} Это метод класса: acf_form_attachment{}
Хуков нет.
Возвращает
n/a.
Использование
$acf_form_attachment = new acf_form_attachment(); $acf_form_attachment->__construct();
Список изменений
С версии 5.0.0 | Введена. |
Код acf_form_attachment::__construct() acf form attachment:: construct ACF 5.9.1
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);
}