index.php의 첫 번째 줄은 get_header()입니다. index.php에 include/require가 없습니다. 아직 wordpress 사이트는 general-template.php에서 get_header()를 참조하여 홈 페이지의 머리 부분을 계속 렌더링합니다.get_header wordpress 함수 호출
WordPress 프레임 워크는 어떻게 이것을 달성합니까?
index.php의 첫 번째 줄은 get_header()입니다. index.php에 include/require가 없습니다. 아직 wordpress 사이트는 general-template.php에서 get_header()를 참조하여 홈 페이지의 머리 부분을 계속 렌더링합니다.get_header wordpress 함수 호출
WordPress 프레임 워크는 어떻게 이것을 달성합니까?
get_header()는 wp-includes/general-template.php에있는 함수입니다.
이 기능은 현재 테마의 디렉토리에있는 header.php 템플릿 파일을 포함합니다. 테마에 header.php 파일이없는 경우이 함수는 wp-includes/theme-compat/header.php에있는 헤더 파일을 포함합니다.
당신은 Wordpress.org
의 codex에서이 기능에 대한 자세한 정보를 찾을 수 있습니다 언급하고있는 index.php에 인덱스 오프 테마입니다. WP 설치의 루트 폴더 내에는 index.php도 있습니다. 이것은 처음으로 불려지는 전체 '여행'을 시작합니다. http://theme.fm/wp-content/uploads/2011/09/wordpress-internals-how-wordpress-boots-up-382x600.png은 전체 파일로드 시퀀스의 이미지를 표시합니다.