본문으로 이동

검색어를 입력하고 Enter를 누르세요.

블로그

김 태영

플러그인 경로 알아내기

플러그인을 제작하거나 수정할 때 php 내에서 특정 파일을 include 하고 싶을 때 사용하면 좋다. plugin_dir_path( __DIR__ ) 은 플러그인의 기본 위치(경로)를 알려준다. ex) /.../wp-content/plugins/kboard/sk...

김 태영

Using The WordPress Enqueue Hook

theme 의 function.php 에 추가하면 테마에 js, css 파일을 불러올 수 있다. wp_enqueue_scripts – action used to load scripts on the front-end admin_enqueue_scripts – actionused to load scripts in the W...