에디터 이미지 업로드 HOOK 이벤트 추가

This commit is contained in:
thisgun
2021-04-05 16:54:17 +09:00
parent c10f196075
commit 595bfbaf11
2 changed files with 4 additions and 0 deletions

View File

@ -69,6 +69,8 @@ if( !$is_editor_upload ){
exit; exit;
} }
run_event('cheditor_photo_upload', $data_dir, $data_url);
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
// //
// //

View File

@ -41,6 +41,8 @@ if( isset($_GET['_nonce']) && ft_nonce_is_valid( $_GET['_nonce'] , 'smarteditor'
if( $is_editor_upload ) { if( $is_editor_upload ) {
run_event('smarteditor_photo_upload', $data_dir, $data_url);
require('UploadHandler.php'); require('UploadHandler.php');
$options = array( $options = array(
'upload_dir' => $data_dir, 'upload_dir' => $data_dir,