WordPress新建连接入口

先建好入口, 在Wordpress根目录下新建文件夹egg,在egg中建立新文件”Index.php”

然后, 在”../wp-includes/default-widgets.php”中找到function widget( args,instance ), 添加 

<li><a href=”../egg/index.php”/>Egg</li>

保存即可。

结果如下图所示。

 

Leave a Reply

Your email address will not be published. Required fields are marked *