mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Initial File and Image Uploader
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user