
內容簡介
WPeMatico Custom Hooks 是一個免費的外掛,讓使用者能夠在可操作的介面中使用 WPeMatico 的開發者 API。它提供了多種鉤子,幫助自動部落格用戶自訂內容處理,無需 FTP 或子佈景主題。
【主要功能】
• 超過 90 個鉤子的目錄
• 自動生成的函數範本
• 實時代碼編輯器,支援 PHP 語法高亮
• 儲存前進行語法驗證
• 衝突檢測,避免函數名稱重複
• 擴展相容,根據啟用的擴展顯示鉤子
外掛標籤
開發者團隊
原文外掛簡介
WPeMatico Custom Hooks puts WPeMatico’s developer API on a screen you can actually work in, and it is completely free.
Sooner or later every autoblog needs a rule that no settings page covers: strip a particular block out of the source content, rename images before they are downloaded, skip items that mention a certain word, decide a category from the feed itself, rewrite a title before it is published. WPeMatico fires dozens of hooks for exactly that purpose. This addon lists every one of them for you, each with a description of what it does, the parameters it receives, and a ready made function template.
No FTP. No child theme. No snippet buried in a functions.php that the next theme update will wipe. You write the function in a proper code editor, the plugin validates it before it is ever stored, and it runs on your next campaign.
How it works
Pick a hook. Each entry tells you what it does, whether it is an action or a filter, and which parameters it receives.
Let the template be written for you. One click drops a correctly formed function into the editor, already carrying the right name, signature and return value for that hook.
Write your code. On save it is parsed on the spot, and if anything is wrong you get the exact line and reason before a single character is stored.
Done. It runs from your next campaign onwards.
The catalogue is not limited to the core. The addon detects which WPeMatico extensions you have active and adds their hooks to the list too, so Professional, Full Content, Polyglot and the rest are covered as well.
Features
Over 90 hooks catalogued, from WPeMatico core and its extensions, each explained in plain language.
Function templates generated for you, with the correct name, parameters and return value already in place.
A real code editor, with PHP syntax highlighting and selectable colour schemes.
Validated before saving. Your code is parsed in place and is never stored with a syntax error.
Conflict detection, so two hooks can never end up declaring the same function name.
Clear reporting. If something cannot run, you are told which hook and why, with a link straight to it.
Extension aware. Hooks appear automatically when their extension is active, and the code you wrote for an extension is preserved while it is not.
Administrators only. Reaching or saving anything here requires permission to edit plugins or themes.
Requirements
This WPeMatico addon requires the WPeMatico base plugin to be installed and activated.
PHP 7.0 or higher.
