acf_form_attachment::admin_footer
This function will add acf_form_data to the WP 4.0 attachment grid
Method of the class: acf_form_attachment{}
No Hooks.
Returns
null. Nothing (null).
Usage
$acf_form_attachment = new acf_form_attachment(); $acf_form_attachment->admin_footer();
Changelog
| Since 5.0.0 | Introduced. |
acf_form_attachment::admin_footer() acf form attachment::admin footer code 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
}