acf_form_attachment::admin_footer
This function will add acf_form_data to the WP 4.0 attachment grid
Метод класса: acf_form_attachment{}
Хуков нет.
Возвращает
n/a.
Использование
$acf_form_attachment = new acf_form_attachment(); $acf_form_attachment->admin_footer();
Список изменений
| С версии 5.0.0 | Введена. |
Код acf_form_attachment::admin_footer() acf form attachment::admin footer ACF 6.8.8
<?php
function admin_footer() {
// render post data
acf_form_data(
array(
'screen' => 'attachment',
'post_id' => 0,
)
);
?>
<script type="text/javascript">
// WP saves attachment on any input change, so unload is not needed
acf.unload.active = 0;
</script>
<?php
}