当我在创建的插件中包含一些div时,激活插件时会出现错误“该插件在激活期间生成了33个字符的意外输出。如果您注意到“headers ready sent”消息、联合提要问题或其他问题,请尝试停用或删除该插件。”
虽然插件在网站上工作,但我在激活它时出错。这是插件代码。我希望它在页面顶部显示文本。我知道我需要用一些钩子,但哪一个?hre是一个显示我想要什么的链接。http://wsoplugins.com/wp-content/uploads/2012/04/Captur.png
<?php
/*
Plugin Name: test
Plugin URI:
Description: test
Author: Ronny Kibet
Author URI:
version: 1.0
*/
?>
<div id="bar">hello there</div>