[WordPress] 外掛分享: Cookbook Hook Guide

首頁外掛目錄 › Cookbook Hook Guide
WordPress 外掛 Cookbook Hook Guide 的封面圖片
10+
安裝啟用
尚無評分
3316 天前
最後更新
問題解決
WordPress 4.4+ v1.0.0 上架:2017-02-17

內容簡介

如果你使用Cookbook作為你的WordPress食譜外掛程式,你可能已經知道或未知道整個模板可以使用小的程式碼片段進行自定義。這個視覺化掛鉤輔助工具外掛程式是一個幫助你對Cookbook模板中所有可用掛鉤有一個視覺框架的工具。

當你安裝和啟用外掛程式時,任何嵌入Cookbook食譜的文章將會顯示模板掛鉤的視覺化表示。這些掛鉤輔助工具只會在您使用管理員帳戶登錄時顯示。任何訪問你網站的人都無法看到掛鉤指南。

如果你將滑鼠指標懸停在特定的掛鉤上,您會看到一個範例程式碼片段,以刪除模板中的該回調函數。以使用此程式碼片段,您需要將它粘貼到你的佈景主題的 functions.php 檔案或顯示包含嵌入食譜的文章的樣板。

我們建議在測試站點或本地開發環境上使用此外掛,以使您更容易自定義您的Cookbook食譜。儘管如此,在直播網站上使用是安全的,但在沒有備份的情況下更改模板時,請務必小心。

貢獻

如果您想提交代碼修補或以任何其他方式貢獻,請在GitHub上fork外掛:https://github.com/wpsitecare/cookbook-hook-guide

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Cookbook Hook Guide」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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. 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.
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. 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.
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. 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. https://github.com/wpsitecare/cookbook-hook-guide

延伸相關外掛

文章
Filter
Apply Filters
Mastodon