ACF_Media::save_filespublicACF 5.0.9

Uploads attachments found in the basic $_FILES array.

Method of the class: ACF_Media{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ACF_Media = new ACF_Media();
$ACF_Media->save_files( $post_id );
$post_id(string|int)
The post ID being saved.

Changelog

Since 5.0.9 Introduced.

ACF_Media::save_files() code ACF 6.0.4

public function save_files( $post_id = 0 ) {
	if ( isset( $_FILES['acf']['name'] ) ) {
		acf_upload_files();
	}
}