acf_form_widget::admin_enqueue_scripts()
admin_enqueue_scripts
This action is run after post query but before any admin script / head actions. It is a good place to register all actions.
Метод класса: acf_form_widget{}
Хуков нет.
Возвращает
N/A
.
Использование
$acf_form_widget = new acf_form_widget(); $acf_form_widget->admin_enqueue_scripts();
Список изменений
С версии 3.6.0 | Введена. |
Код acf_form_widget::admin_enqueue_scripts() acf form widget::admin enqueue scripts ACF 6.0.4
function admin_enqueue_scripts() { // validate screen if ( acf_is_screen( 'widgets' ) || acf_is_screen( 'customize' ) ) { // valid } else { return; } // load acf scripts acf_enqueue_scripts(); // actions add_action( 'acf/input/admin_footer', array( $this, 'admin_footer' ), 1 ); }