저는 WordPress에 들어있어 꽤 좋은 자습서와 코덱스를 읽고 있었지만 문제는 발견 할 수 없었습니다. 다른 곳으로 대답하십시오. 궁극적으로 내 계획은 템플릿의 특정 요소에 대한 색상, 너비, 위치 등을 변경할 수있는 내 테마 사용자를위한 인터페이스를 만드는 것입니다. 기본적으로 그것은 CSS 문서를 생성합니다 PHP 파일이 될 것입니다. 지금은 모든 것이 문장을 되풀이하지만. 이 플러그인이 기술적으로 "플러그인"인지 확실하지 않지만 플러그인 폴더에 넣으려고하면 404 오류가 발생합니다. 나는 그 파일이 거기에 있다는 것을 알고 있으며, 나는 그 경로를 삼중으로 점검했다. 나는 또한 URL에서 직접 php 파일을 탐색하려했지만 여전히 404 오류가 발생합니다. 또한 플러그인 템플릿을 사용해 보았습니다. 그것은 플러그인 관리자에서 "활성화"를 클릭하면 문장을 표시하지만 functions.php 파일에서 플러그인을 호출 할 때 전혀 작동하지 않습니다. 어떤 도움이라도 대단히 감사합니다.Wordpress에서 올바른 디렉토리에 php 파일을 찾을 수 없습니다.
//begin template specific*******************************************************
//------the function below styles the wordpress admin menus.-------
function custom_style() {
echo '<style type="text/css">#adminmenu .wp-menu-image img {padding: 0px !important; margin-left: -3px;}</style>';
}
add_action('admin_menu', 'register_custom_menu_page');
add_action('admin_menu', 'custom_style');
//------this function adds the template specific menu item.---------
function register_custom_menu_page() {
add_menu_page('Epsilon', 'Epsilon', 'add_users', plugins_url('epsilon/eps-manage.php', eps-manage.php), '', content_url('themes/epsilon/images/eps-icon.png'), 6);
} // this function creates the correct path as far as I can tell, but when I click the link button in the admin menu, I get the 404.
//------this function hides the editor option under the appearance menu ----------
function remove_editor_menu() {
remove_action('admin_menu', '_add_themes_utility_last', 101);
}
add_action('_admin_menu', 'remove_editor_menu', 1);
왜 내가이 404 오류가 발생하고 있는데이 작업을 수행하는 더 정확한 방법이 여기있다 :
내가 내 functions.php의 끝에 배치 한 코드를 무엇입니까?