WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

ko:Function Reference

워드프레스 파일에는 유용한 PHP 함수들이 많이 정의되어 있습니다. 그 중에는 특별히 테마에서 사용하도록 정의된 템플릿 태그 라는 함수들이 있으며, 다른 일부는 주로 플러그인 개발에 사용되는 액션과 필터 (플러그인 API 참조) 관련 함수들도 있으며, 그외 나머지는 워드프레스 코어 기능을 만드는데 사용되는 함수들입니다.

워드프레스 코어 함수들은 플러그인과 테마 개발에도 유용합니다. 그래서 이 문서는 템플릿 태그를 제외한 코어 함수의 대부분이 목록화 되어있습니다. 문서 하단에는 워드프레스 함수들의 정보를 찾을 수 있는 '기타 리소스 목록' 섹션이 있습니다. WordPress phpdoc site 에 모든 워드프레스 함수들이 2.6.1 버전 부터 버전별로 상세한 정보가 수록되어 있습니다.

당신은 이 문서를 더욱 완벽하게 만들어 주실 수 있습니다.!

당신이 도움을 줄 수 있는 것들 :

  • 문서에 없는 함수들을 위해 하위 문서를 새로 작성하거나, 적어도 각 목록 밑에 짧은 주석문을 추가해 줄 수 있습니다. 만약 당신이 함수를 위한 하위 문서를 작성한다면 함수 정보와 사용법 예제를 포함시켜 주세요. 가능하면 각 예제들은 템플릿 태그에서 찾을 수 있는 것들로요.
  • 더 많은 함수들을 카테고리 구조에 맞춰 추가해 주세요.
  • 실수나 잘못된 점을 수정해 주세요. 가령, 함수가 위치한 기존 카테고리 보다 더 알맞는 카테고리가 있다면 이동시키고, 오탈자는 교정해 주세요. 참고 : 하나의 함수가 여러 카테고리에 위치해도 괜찮습니다.

당신이 워드프레스에 기여할 수 있는 방법을 더 찾기 위해서 워드프레스에 기여하기를 읽으세요.

카테고리별 함수 목록

포스트, 커스텀 포스트 형식, 페이지, 첨부, 북마크 관련 함수

포스트(Posts)

사용자 정의 포스트 형식(Custom Post Type)

포스트 추가/제거 (Post insertion/removal)

페이지(Pages)

사용자 정의 필드 (Custom Fields (postmeta))

첨부 (Attachments)

북마크 (Bookmarks)

용어 (Terms)


기타 (Others)

카테고리, 태그, 분류(택소노미) 관련 함수

카테고리 (Categories)

카테고리 생성 (Category Creation)

태그 (Tags)

분류(택소노미, Taxonomy)

사용자와 글쓴이 관련 함수

관리자, 역할, 권한 (Admins, Roles and Capabilities)

사용자, 글쓴이(Users and Authors)

사용자 메타 (User meta)

사용자 추가/수정/제거

로그인 / 로그아웃 (Login / Logout)

피드(Feed) 관련 함수

HTTP API 함수


댓글, 핑, 트랙백 관련 함수

댓글 루프 (Comments Loop)

댓글 페이지 매기기 (Comments Pagination)


액션, 필터, 플러그인 관련 함수

필터 (Filters) (Reference)

액션 (Actions) (Reference)

플러그인 (Plugins) (Reference)

위젯 (Widgets) (Reference)


설정 (Settings) (Reference)

숏코드 (Shortcodes) (Reference)

테마 관련 함수

Include 함수

기타 함수

Formatting Functions

기타 함수

시간/날짜 함수

직렬화

옵션

Transients

관리자 메뉴 함수

툴바 함수

Form Helpers


Nonces and Referers (Security)

XMLRPC

지역화 (Localization)

Cron (Scheduling)

조건 태그 색인 (Conditional Tags Index)

스크립트와 스타일 등록 (Script and Style Registration)

sql

기타 함수

다중 사이트 관련 함수

버전 3.0 에서 WPMU 기능이 워드프레스에 추가되었습니다. 오래된 WPMU 함수 레퍼런스는 http://codex.wordpress.org/WPMU_Functions (deprecated page)에서 찾을 수 있습니다.

다중 사이트 관리 함수

These functions are found in file wp-admin/includes/ms.php (since 3.0.0).


다중 사이트 함수 사이트/블로그 함수들은 블로그 테이블과 연관 데이터와 work 합니다. wp-includes/ms-blogs.php 파일에서 찾았습니다. (3.0.0 부터)

Defines constants and global variables that can be overridden, generally in wp-config.php, found in file wp-includes/ms-default-constants.php (since 3.0.0).

Multisite WordPress API, found in file wp-includes/ms-functions.php (since 3.0.0).

아래 함수들은 다중 사이트를 로드하기 위해 필요합니다. wp-includes/ms-load.php 파일에서 찾았습니다. (3.0.0 부터)

공식 / 비공식 레퍼런스

  • Trac Browser - WordPress source code. Choose 'Tags' to find a specific version source code, or 'Trunk' to see the latest version source code.
  • PHPXref for WordPress - Cross reference of WordPress files, functions, and variables, which seems to point to the latest released version.
  • WordPress Function History Table - List each WordPress function with including the version it was introduced in or dropped in. PlanetOzh recommends: "see related WordPress Functions Implementation History Tool for more information (and for a more usable tool)"
  • WordPress Variable Report - A list of WordPress functions, listing what version of PHP every function requires (and if there's a compatible function available), what varables/arguments in functions are unused, and what functions/variables each class contains (and their default values).
  • WordPress Hooks Table - A list of WordPress actions and filters, cross-referenced to the files they are in