wordpress隐藏动作从functions.php
我在functions.php&中添加了一些操作。我不希望客户看到这些钩子。请帮我如何?
我尝试创建一个新文件,然后添加代码并将其连接到functions.php中,但是在执行此代码之后不起作用。.请帮助我。请帮助我。太感谢了
I added some actions hooks in functions.php & i don't want customer to see those hooks. Please help me how ?
I tried, to create a new file then add the code and attach it in functions.php but after doing this code not work.. Please help me. Please help me into this. Thank you so much
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以为代码创建一个简单的单php文件插件。
/wp-content/plugins/hello.php中有一个示例。这是Matt Mullenweg的Hello Dolly插件。复制并更改它。准备好与之上线时,请不要忘记从插件面板中激活它。
编写用于公共发行的插件是一项艰巨的工作,但是为客户编写一次性插件要容易得多。
You could create a simple one-php-file plugin for your code.
There is an example in /wp-content/plugins/hello.php. It's Matt Mullenweg's Hello Dolly plugin. Copy it and change it. Don't forget to activate it from the Plugins panel when you're ready to go live with it.
Writing plugins for public distribution is a big job, but writing one-off plugins for customers is much easier.