wordpress隐藏动作从functions.php

发布于 2025-02-02 19:14:55 字数 131 浏览 3 评论 0原文

我在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

私野 2025-02-09 19:14:55

您可以为代码创建一个简单的单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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文