尝试学习WP插件开发。
遵循所有说明。
plugins/e4-test-1
目录
主php文件(e4-test-1.php
):
<?php
/**
* Plugin Name: Test 1
* Plugin URI: http://xxxxx.xxx
* Description: xxxxxxxxxxxxxxxxxx
* Version: 1.0.0
* Author: xxxxxxx
* Author URI: http://xxxxxx.xxx
* License: GPL2
*/
My one是唯一一个包含代码的php文件(testhook.php
):<?php
function testhook() {
echo \'SOULISSSSSSSSSSSS\';
}
add_action( "wp_head", "testhook" );
它什么都不做。视图源不包含任何字符串。当然我已经激活了插件,清除了缓存e.t.c
显然我的无知阻止了我发现错误