플러그인 설치시 ftp 정보 물어볼 때 추가할 php
wp-config.php 파일 제일 하단에 define('FS_METHOD','direct'); 이 코드만 추가하면 된다. http://www.hongkiat.com/blog/update-wordpress-without-ftp/
wp-config.php 파일 제일 하단에 define('FS_METHOD','direct'); 이 코드만 추가하면 된다. http://www.hongkiat.com/blog/update-wordpress-without-ftp/
현재 로그인 한 유저의 정보를 불러오는 방법이다. 원문 글 – WordPress Codex Function Reference/wp get current user 예제 $current_user = wp_get_current_user(); /** * @example Safe usage: $cu...
<?php bloginfo('name'); $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) { echo ' | '.$site_description; } wp...
서버 이전 후 무언가 꼬여서 도메인이 이전 서버의 도메인으로 자꾸 이동한다면 다음 링크의 방법을 해봐야한다. php 편집 https://codex.wordpress.org/Changing_The_Site_URL wp-config.php 편집 과&nbs...
$wwwDir = explode('www', dirname(__FILE__))[0].'www/'; include($wwwDir.'file.php'); 소스 설명 include html 을 포함한 파일을 불러오기 위한 include include_once 함수파일을 한번만 가져오기 위...
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...