这是我开发的第一个Wordpress插件,如果我问的话,请原谅。还使用Wordpress v4.7
我创建了一个文件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 :(得分:0)