标签:__file__ word logs des fun res fan file log
define( ‘CSS‘, plugin_dir_url( __FILE__ ) . ‘css/‘ );//定义css根目录 define( ‘JS‘, plugin_dir_url( __FILE__ ) . ‘js/‘ );//定义js根目录 function sc_meeting_map_load_css(){ wp_enqueue_style( ‘xiaofan_css‘ ,CSS . "xiaofan.css");//css wp_enqueue_script( ‘xiaofan_js‘ ,JS.‘xiaofan.js‘);//js }
目录结构如下
plugins
-xiaofan-plugins
-css
-js
-images
-includes
-template
-xiaofan-plugins.php
-uninstall.php
标签:__file__ word logs des fun res fan file log
原文地址:http://www.cnblogs.com/ningmeng666/p/7592604.html