Code Snippets

설명

✂ 코드 스니펫은 WordPress 사이트를 손쉽게 향상시킬 수 있는 방법을 제공합니다.

🚀 Code Snippets Pro로 업그레이드하세요 완벽한 CSS, JavaScript, 구텐베르크, Elementor 및 클라우드 동기화 통합을 위해. 지금 스니펫 경험을 향상시키세요!

테마의 functions.php 파일을 수정하고 끝없는 플러그인을 다운로드하는 번거로움에 작별을 고하세요 – Code Snippets가 그 과정을 간소화합니다!

스니펫은 워드프레스 사이트에 추가 기능을 제공하는 미니 플러그인과 같으며, 복잡함 없이 기능을 추가합니다.

functions.php 파일에 코드를 덤프하는 다른 솔루션과 달리, Code Snippets는 직관적인 그래픽 인터페이스를 제공하여 매끄러운 통합과 실시간 실행을 지원합니다. 스니펫 관리는 플러그인을 활성화하고 비활성화하는 것만큼 쉽지만, 불필요한 부하와 오버헤드는 없습니다.

🎥 Imran Siddiq의 빠른 개요 보기:

☁️ Code Snippets의 각 사본에는 커뮤니티 기반의 Code Snippets Cloud 플랫폼과의 완전한 통합이 포함되어 있어, 수백 가지의 조정 및 향상 기능에 쉽게 접근할 수 있으며, 이를 통해 어떤 WordPress 사이트도 강화할 수 있습니다.

🌐 저희와 연결하세요:

🌟 저희 플러그인이 마음에 드시나요? 유용하다고 생각하시나요? WordPress.org에 리뷰를 남겨 경험을 공유해 주시길 부탁드립니다. 여러분의 피드백은 저희의 미래 성장을 형성하는 데 중요한 역할을 합니다!

🌍 Code Snippets가 다양한 언어로 사용될 수 있도록 번역에 기여해 주신 멋진 분들께 감사드립니다. 전체 목록은 여기에서 확인할 수 있습니다.

스크린샷

설치

Automatic Installation

  1. WordPress 관리자에 로그인하세요
  2. 플러그인을 클릭하세요

  3. 새로 추가를 클릭하세요

  4. 코드 스니펫 검색

  5. 코드 스니펫” 아래의 지금 설치를 클릭하세요.

  6. 플러그인을 활성화하세요

Manual Installation

  1. 플러그인을 다운로드하세요
  2. zip 파일의 콘텐츠를 추출하세요
  3. zip 파일의 콘텐츠를 WordPress 설치의 wp-content/plugins/ 폴더에 업로드하세요.
  4. ‘플러그인’ 페이지에서 Code Snippets 플러그인을 활성화하세요.

네트워크 대시보드를 통해 코드 스니펫을 네트워크 활성화하면 전체 네트워크에서 스니펫을 실행할 수 있는 특별한 인터페이스가 활성화됩니다.

FAQ

자주 묻는 질문 전체 목록은 codesnippets.pro에서 확인할 수 있습니다.

버그가 있는 스니펫 때문에 사이트가 다운되었을 때 어떻게 복구할 수 있나요?

Code Snippets의 세이프 모드 기능을 활성화하면 사이트를 복구할 수 있습니다. 설정 방법은 다음에서 확인하세요: https://codesnippets.pro/doc/safe-mode/.

테마를 변경하거나 WordPress를 업그레이드하면 스니펫을 잃게 되나요?

아니요, 스니펫은 테마와 독립적으로 WordPress 데이터베이스에 저장되며 WordPress 업그레이드에 영향을 받지 않습니다.

플러그인을 완전히 제거할 수 있나요?

플러그인 설정 페이지에서 ‘완전 제거’ 옵션을 활성화하면, Code Snippets는 WordPress ‘플러그인’ 메뉴를 통해 삭제될 때 모든 데이터를 정리합니다. 여기에는 저장된 모든 스니펫이 포함됩니다. 스니펫을 보존하고 싶다면 먼저 내보내졌는지 확인하세요.

제가 만든 스니펫을 다른 WordPress 사이트로 복사할 수 있나요?

네! ‘스니펫 관리’ 페이지에서 스니펫 이름 아래의 링크를 사용하여 단일 스니펫을 개별적으로 내보낼 수 있으며, ‘일괄 동작’ 기능을 사용하여 여러 스니펫을 일괄 내보낼 수 있습니다. 내보낸 파일을 업로드하여 ‘스니펫 가져오기’ 페이지에서 스니펫을 나중에 가져올 수 있습니다.

Code Snippets 플러그인을 사용하지 않는 사이트에 대해 내 스니펫을 PHP로 내보낼 수 있나요?

네. 내보내고자 하는 스니펫 옆의 체크박스를 클릭한 다음, 일괄 동작 메뉴에서 PHP로 내보내기를 선택하고 적용을 클릭하세요. 생성된 PHP 파일에는 내보낸 스니펫의 코드와 함께 이름 및 설명이 댓글로 포함됩니다.

멀티사이트 설치에서 네트워크 전체에 스니펫을 실행할 수 있나요?

다음의 방법으로 전체 멀티사이트 네트워크에서 스니펫을 실행할 수 있습니다: 네트워크 대시보드를 통해 코드 스니펫을 네트워크 활성화합니다. 또한, 코드 스니펫을 메인 사이트에서 활성화한 후, 선택한 다른 사이트에서 개별적으로 활성화할 수도 있습니다.

내 WordPress 데이터베이스에 스니펫은 어디에 저장되나요?

스니펫은 WordPress 데이터베이스의 wp_snippets 테이블에 저장됩니다. 테이블 이름은 테이블 접두사가 어떻게 설정되었는지에 따라 다를 수 있습니다.

도움말을 받거나 새로운 기능을 제안하려면 어디로 가야 하나요?

Code Snippets에 대한 도움을 받거나, 버그나 오류를 보고하고, 새로운 기능과 개선 사항을 제안하려면 WordPress 지원 포럼 또는 GitHub에서 가능합니다.

Code Snippets 플러그인 개발에 기여하려면 어떻게 해야 하나요?

이 작업을 수행하는 가장 좋은 방법은 GitHub의 저장소를 포크하고 풀 리퀘스트를 보내는 것입니다.

이 플러그인에서 발견된 보안 버그를 어떻게 보고할 수 있나요?

이 플러그인의 소스 코드에서 발견된 보안 버그는 Patchstack 취약점 공개 프로그램을 통해 보고할 수 있습니다. Patchstack 팀은 보안 취약점의 검증, 분류 및 통지에 도움을 드릴 것입니다.

후기

2026년 8월 9일 답글 1개
Used for many years without any problems. Thumbs up!
2026년 8월 9일 답글 1개
very good plugin, it’s help me so much..
2026년 7월 13일 답글 1개
Das Plugin erfüllt seinen Zweck, es ist leicht zu bedienen und funktioniert einwandfrei. Ich benutze es schon länger in der freien Version auf mehreren Websites und empfehle es gerne weiter.
모든 509 평가 읽기

기여자 & 개발자

“Code Snippets”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“Code Snippets”(이)가 29 개 언어로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “Code Snippets”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

3.10.2 (2026-09-01)

추가됨

  • Added a confirmation flow for run-once snippet execution and hardened the handler to prevent failed or confusing actions.

변경됨

  • Snippet names now respect the row truncation Screen Option in the admin list for better readability.
  • Version switching AJAX requests now validate the correct nonce, improving reliability when updating snippet versions.

고정됨

  • Fixed safe mode fatal errors caused by an undefined wp_get_current_user() call.
  • Fixed PHP validation being triggered incorrectly when activating snippets in bulk.
  • Fixed saving issues after a user session expires.
  • Fixed warnings caused by aliased field names when reading modified snippet fields.
  • Fixed vendor autoloader issues by stripping unprefixed namespace references.
  • Resolved issues where snippet names and version switches could behave inconsistently in the admin UI.

3.10.1 (2026-08-28)

변경됨

  • Enhanced active-link visibility in the toolbar with border-based styling.

고정됨

  • Fixed a fatal error affecting snippets that use a namespace or declare statement.
  • Fixed the snippets page rendering blank when another plugin’s screen settings filter returned an invalid value.
  • Fixed snippet saving on hosts that block REST API PUT and PATCH requests, by sending writes as POST with a method override.
  • Fixed the Snippets List Order setting not being applied to the snippets list.
  • Fixed admin bar snippet scripts failing to load on the free version, including on the site front end.
  • Fixed snippet modified dates being sent without the correct UTC offset.
  • Fixed the row truncation screen option not persisting across sessions.
  • Fixed inconsistent sidebar label sizes.
  • Fixed the sticky editor sidebar showing an unwanted horizontal scrollbar.

3.10.0 (2026-08-24)

추가됨

  • New admin interface for managing snippets, with a cleaner layout, faster interactions, and a more consistent experience across plugin screens.
  • Card view for browsing snippets, with a view switcher on the snippets table and Community Cloud.
  • Snippet preview modal for viewing snippet code from the snippets table without opening the editor.
  • Automatic hiding of unrelated admin notices from other plugins on Code Snippets screens.
  • Admin bar snippet drawer, based on the Deckerweb Snippets workflow, for quick access to snippets and Safe Mode from the WordPress admin bar.
  • Snippet locking to help prevent accidental edits or deletion of important snippets. Props to https://github.com/mgiannopoulos24.
  • Improved screen options on the main snippets table, including controls for visible columns and truncating long snippet names or descriptions.
  • Bulk actions and bulk code download support in the redesigned snippets table.
  • Featured snippets and improved browsing in Community Cloud.
  • WordPress modern theme admin styling compatibility.
  • Clearer accessibility labels, headings, tab markup, table checkboxes, sort buttons, copy buttons, and drag-and-drop upload controls.

변경됨

  • Redesigned the main snippets table with improved search, filtering, sorting, pagination, row actions, and bulk selection.
  • Improved the snippet import and migration experience, including clearer file upload handling and third-party plugin migration flows.
  • Improved snippet error handling so activation failures, validation errors, and stack traces are easier to understand.
  • Improved Community Cloud search and filtering, including server-side filters, better result loading, and clearer empty states.
  • Updated the welcome screen, toolbar, import screen, and cloud screens to match the new admin experience.
  • Updated internal plugin architecture to a cleaner PSR-4 structure for better long-term maintainability.
  • Improved accessibility across the snippets table, import screen, migration flow, Community Cloud, welcome screen, toolbar, dialogs, tooltips, and code editor.
  • Improved colour contrast and reduced-motion support across admin screens.

고정됨

  • Fixed REST API server error responses on missing snippets.
  • Fixed redundant frontend logic, improving overall performance.
  • Fixed Community Cloud search results and pagination to respect WordPress screen options.
  • Fixed snippet saving and activation feedback to improve validation and runtime error display.
  • Fixed downloaded Community Cloud snippets appearing as not downloaded after a page reload.
  • Fixed network snippet lookups using the wrong database table on multisite.
  • Fixed the inactive snippets count including trashed snippets.
  • Fixed featured Community Cloud snippets failing to load with some cloud API responses.

3.9.6 (2026-04-28)

고정됨

  • Improved permissions handling with snippets REST API.
  • Site admin cannot toggle shared network snippets status.

3.9.5 (2026-02-05)

고정됨

  • Improved security when handling actions for downloading and updating cloud snippets.

3.9.4 (2026-01-14)

추가됨

  • New import functionality to migrate snippets from file uploads with drag-and-drop interface.
  • Support for importing snippets from other popular plugins (Header Footer Code Manager, Insert Headers and Footers, Insert PHP Code Snippet).
  • Enhanced file based execution support with improved multisite mode compatibility.

고정됨

  • Fixed multisite capability checks in Plugin class.
  • Fixed snippet execution logic for multisite support by centralizing trashed snippet handling.
  • Fixed multisite snippet handling to ensure local snippets use correct table and filter out trashed snippets.

3.9.3 (2025-12-03)

추가됨

  • End-to-end tests to verify the toggle visual state in the snippets list page, improving UI verification and test reliability.

고정됨

  • Restored missing styles styling and direction-aware layout from Manage menu.
  • Ensure correct transformation value is used when detecting state of activation toggle.

3.9.2 (2025-11-17)

변경됨

  • TinyMCE 확장을 위해 커스텀 가위 아이콘을 도입하고 버튼 제목을 업데이트했습니다.
  • 편집 페이지의 향상된 뒤로-내비게이션 스타일링.
  • 클라우드 스니펫 목록에서 열 이름과 액션 버튼들의 레이아웃을 정교하게 개선함.
  • 클라우드 관련 UI 구성 요소의 전반적인 스타일이 향상되었습니다.
  • 더 효율적인 페이지네이션 및 스니펫 검색으로 최적화된 클라우드 검색.
  • 다른 플러그인들과 Composer 의존성 충돌을 방지하기 위한 기반을 마련했습니다.

고정됨

  • Cloud API와 페이지네이션 출력 전반에 걸친 향상된 정제 및 정규화
  • 워드프레스 지원 포럼에 보고된 다양한 TinyMCE 문제를 해결했습니다.

3.9.1 (2025-11-14)

변경됨

  • 호환성 향상과 스타일링 단순화를 위해 네이티브 CSS 방향 처리(RTL/LTR)로 마이그레이션함
  • 의존성들을 최신 호환 버전으로 업데이트함

고정됨

  • 초기화 실패를 방지하기 위해 TinyMCE 메뉴 버튼 등록(회원가입)을 수정함
  • 편집기에서 ‘코드 방향’ 컨트롤의 위치를 수정함

3.9.0 (2025-11-13)

추가됨

  • 스니펫 목록 표에 문맥별 알림을 추가하여 UI에 작업 결과와 경고를 표시함
  • 네트워크 전체 스니펫 공유를 보다 명확히 제어할 수 있도록 펼친 멀티사이트 공유 설정

변경됨

  • 모던화된 브라우저 지원 대상 및 다듬어진 관리자 UI(더 명확한 행-작업 배지, 개선된 Pro 배지 마우스 오버, 정교해진 활성 스니펫 이름 스타일링)

고정됨

  • REST API 페이지네이션을 수정하여 올바른 결과 및 페이지 수를 반환하도록 함
  • 활성 스니펫 이름이 안정적으로 강조되도록 스타일 선택자 수정됨

3.8.2 (2025-10-31)

고정됨

  • 네임스페이스화된 PHP 스니펫 처리를 개선하고 파일 기반 실행을 지원합니다.

3.8.1 (2025-10-28)

추가됨

  • AI 생성 댓글에 적용 및 제거 동작이 있는 코드 라인 설명 위젯. (PRO)

변경됨

  • 클라우드 검색 결과의 페이지 매김 처리 및 표시 구조 개선 (PRO)
  • 클라우드 인터페이스의 codevault 행 및 비활성 탭에 대한 향상된 스타일링. (PRO)

제거됨

  • 패키지 충돌을 줄이기 위해 guzzlehttp/guzzle 의존성을 제거했습니다. (PRO)

고정됨

  • 멀티사이트 설치를 위한 파일 기반 스니펫 처리 개선.

3.8.0 (2025-10-24)

추가됨

  • @CarolinaOP님과 @louiswol94님이 플러그인 기여자로 팀에 합류합니다.
  • 파일 기반 실행 모드 스니펫 (플러그인 설정에서 선택 가능).
  • 버전 전환 옵션은 플러그인을 이전 릴리스로 쉽게 롤백할 수 있도록 도움을 줍니다.
  • 편집기와 사이드바에 대한 사소한 UI 개선 사항.

변경됨

  • 다른 플러그인과의 충돌을 줄이기 위해 접두사가 붙은 Composer 패키지.
  • 스니펫 REST API는 이제 페이지 및 per_page 쿼리 파라미터를 통한 페이지 매김을 지원합니다.
  • 향상된 편집기 미리보기 동작.

고정됨

  • 특수한 경우에서 스니펫 평가 및 프론트엔드 초기화와 관련된 문제를 수정했습니다.
  • 스니펫 평가의 신뢰성 향상.
  • 조건 버그로 인해 JavaScript 및 CSS 코드 조각이 두 번 로드됩니다. (PRO)
  • 루프 전에 로드되어 일부 조건이 작동하지 않는 문제를 수정했습니다. (PRO)

3.7.0 (2025-08-29)

추가됨

  • 새로운 ‘조건’ 기능: 강력한 로직 빌더로 스니펫이 실행되는 위치와 시간을 제어합니다. (PRO)

변경됨

  • 새로운 모습과 기능으로 새로 고침된 편집 메뉴.
  • 스니펫 유형 배지를 더 시각적으로 구별되도록 업데이트했습니다.
  • 플러그인 전반에 걸쳐 사용되는 툴팁이 새롭게 디자인되었습니다.
  • 콘텐츠 스니펫 단축코드 옵션을 별도의 모달 창으로 이동했습니다.
  • 내장된 워드프레스 태그 편집기를 사용하도록 스니펫 태그 편집기를 업데이트했습니다.
  • 베타 피드백 공유를 위한 적절한 양식을 생성했습니다.
  • 스니펫 활성화 토글의 UX 개선.

고정됨

  • 멀티사이트 네트워크에서 활성 스니펫을 가져올 때 이제 스니펫을 정렬할 때 ‘우선순위’ 입력란이 가장 우선시됩니다.
  • 클라우드 검색이 올바르게 표시되며 Code Snippets의 무료 버전에서 스니펫을 다운로드할 수 있습니다.
  • 관리자 메뉴 아이콘 로딩 성능 개선.

3.6.9 (2025-02-17)

변경됨

  • Cloud_API::get_bundles()를 업데이트하여 번들 데이터를 올바르게 확인하고 유효한 번들이 없을 경우 빈 배열을 반환하도록 했습니다.
  • Cloud_List_Table::fetch_snippets()를 리팩토링하여 항상 유효한 Cloud_Snippets 인스턴스를 반환하도록 했습니다.
  • 번들 보기에 있는 번들 반복 코드를 정리하고 번역 처리를 개선했습니다.

고정됨

  • 반복하기 전에 번들 배열을 확인하는 체크를 추가하여 번들 반복의 오류를 수정했습니다.

전체 변경 사항은 GitHub에서 확인할 수 있습니다