Initial File and Image Uploader

This commit is contained in:
Champ Camba
2018-07-31 01:35:08 +08:00
parent 752995f223
commit fad46ea012
15 changed files with 1483 additions and 263 deletions
+15
View File
@@ -540,6 +540,8 @@ if ( ! class_exists( 'UM' ) ) {
$this->mobile();
$this->external_integrations();
$this->gdpr();
$this->uploader();
}
@@ -1139,6 +1141,19 @@ if ( ! class_exists( 'UM' ) ) {
return $this->classes['files'];
}
/**
* @since 2.0.21
*
* @return um\core\Files
*/
function uploader() {
if ( empty( $this->classes['uploader'] ) ) {
$this->classes['uploader'] = new um\core\Uploader();
}
return $this->classes['uploader'];
}
/**
* @since 2.0