_acf_settings_uploader()ACF 1.0

Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.

No Hooks.

Returns

null. Nothing (null).

Usage

_acf_settings_uploader( $uploader );
$uploader(required)
.

_acf_settings_uploader() code ACF 6.8.8

function _acf_settings_uploader( $uploader ) {

	// if can't upload files
	if ( ! current_user_can( 'upload_files' ) ) {
		$uploader = 'basic';
	}

	// return
	return $uploader;
}