2017-01-03 2 views
0

이것은 내 첫 번째 Wordpress 플러그인이므로 개발 중입니다. 분명한 점은 용서 해주십시오. 또한 Wordpress v4.7을 사용하여내 사용자 정의 WP 플러그인이 사용자 정의 프로그램에 표시되지 않습니다.

나는 animate-css.php 파일을 만들고 로컬로 호스팅 된 사이트의 plugins 폴더에 추가했습니다. 로그인하고 플러그인을 활성화했지만, 문서를 따라 했는데도 어떤 이유로 섹션이 표시되지 않습니다. https://codex.wordpress.org/Writing_a_Plugin.

코드 : 사전에

<?php 

/* 
Plugin Name: Animate-css 
Plugin URI: http://noneasyet.sorry 
Description: Enter the animate class you would like to add to any DOM element. 
Version: 1.0 
Author: Shannon Williams 
Author URI: http://stillnoneyet.againsorry 
*/ 

function mytheme_customize_register($wp_customize) { 
//All our sections, settings, and controls will be added here 

$wp_customize->add_section('Animate Elements' , array(
'title'  => __('Animate Elements'), 
'priority' => 10, 
)); 
} 

add_action('customize_register', 'mytheme_customize_register'); 

?> 

감사합니다.

답변

0

아하!

첫째, 이것은 Wordpress에 대한 질문을 게시하는 StackExchange의 잘못된 섹션입니다. 둘째, 올바른 섹션과 대답은 here입니다.

항상 섹션, 제어 및 설정을 정의해야합니다. 위의 링크에서 자세히 설명합니다.

관련 문제