// 임시 권한 우회: 파일이 포함된 요청이 들어오면 현재 사용자의 upload_files 권한을 임시 허용 add_filter('user_has_cap', function($all_caps, $caps, $args, $user){ if( ! is_user_logged_in() ) return $all_caps; $current_user = wp_get_current_user(); // shop_manager 역할만 타겟 (필요시 역할명 수정) if( ! in_array('shop_manager', (array)$current_user->roles, true) ) return $all_caps; // 프런트엔드 파일 업로드 요청인지 확인 (더 정밀히 필터 가능) $is_file_upload_request = ! empty($_FILES); if( $is_file_upload_request ) { $all_caps['upload_files'] = true; // 필요할 경우 아래도 임시 부여: // $all_caps['edit_posts'] = true; // $all_caps['edit_others_posts'] = true; // 만약 포스트 작성자 문제라면 } return $all_caps; }, 10, 4);
ppuri_campus_q

말하기를 말하기

문학 1

오해 생길 일 없이 나답게 말하는 법은 뭘까? 그런 말하는 방법이 있을까? 나답게 말하는 법을 알려주는 <말하기를 말하기> 함께 읽으신 분들

획득하신 분들 :

  • Profile photo of loves972
  • Profile photo of Onsaemiro
  • Profile photo of lucifel72
  • Profile photo of Jimmy
  • Profile photo of 샨샨
  • Profile photo of HeeA
  • Profile photo of sandyzzong