acf_form_attachment::admin_footer()publicACF 5.0.0

admin_footer

This function will add acf_form_data to the WP 4.0 attachment grid

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

Хуков нет.

Возвращает

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

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

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

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

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

Код acf_form_attachment::admin_footer() ACF 6.0.4

<?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

}