[wordpress插件] Cookbook Hook Guide食谱挂钩指南

wordpress 插件 文章 2020-04-02 04:41 579 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

If you’re using Cookbook as your WordPress recipe plugin, you may or may not already know that the entire template can be customized using small code snippets.

如果您使用Cookbook作为WordPress食谱插件,则可能会或可能不会知道可以使用小代码段自定义整个模板。

This visual hook guide plugin is a helper that will give you a visual frame of reference for all of the template hooks available in Cookbook.

该可视化挂钩指南插件是一个帮助程序,将为您提供Cookbook中所有可用模板挂钩的直观参考框架。

When you install and activate the plugin, a visual representation of the template hooks will display when viewing any post with an embedded Cookbook recipe.

安装并激活插件时,在查看带有嵌入式Cookbook食谱的任何帖子时,模板挂钩的可视化表示将显示。

These hook helpers will only display when you are logged-in with an administrator account.

这些挂钩帮助器仅在您使用管理员帐户登录时显示。

Nobody visiting your website will be able to see the hook guide.

没有人访问您的网站将无法看到该挂钩指南。

If you hover a particular hook, you’ll see an example code snippet to remove that callback function from your template.

如果您将鼠标悬停在特定的挂钩上,则会看到一个示例代码片段,该代码片段将从模板中删除该回调函数。

In order to use the snippet, you would paste it into your theme’s functions.php file or a template you’re using to display the post where your recipes are embedded.

为了使用此代码段,您可以将其粘贴到主题的functions.php文件或模板中,以显示嵌入了食谱的帖子。

We recommend using this plugin on a staging site or local development environment as a way to make it easier for you to customize your Cookbook recipes.

我们建议在暂存站点或本地开发环境上使用此插件,以使您更轻松地自定义Cookbook食谱。

That said, it should be safe to use on a live website, but please be careful making template changes without backing things up first.

话虽如此,在真实网站上使用它应该是安全的,但是请谨慎进行模板更改,而无需先备份。

Contributing

贡献

If you’d like to submit code patches or contribute in any other way, please fork the plugin on GitHub.

如果您想提交代码补丁或以其他任何方式做出贡献,请将该插件分叉到GitHub上。

https://github.com/wpsitecare/cookbook-hook-guide

https://github.com/wpsitecare/cookbook-hook-guide

下载地址
https://downloads.wordpress.org/plugin/cookbook-hook-guide.1.0.0.zip
-EOF-

AI助手支持GPT4.0