
內容簡介
外掛首頁
此外掛有兩種用途:
有趣的教學工具
即使您對 WordPress 編程一無所知,您仍然可以撰寫微型 nano 外掛。隨著您的編程技能越來越自信,您可以寫更多的微型外掛,並完全獨立撰寫標準大小的外掛,無需依賴 Nano Plugin 管理員。您仍然可以將其用作開發工具。
而且,您可以瀏覽日漸增長的 nano 外掛目錄。研讀它們,從中學習,或只是不關心其運作方式而直接使用它們:
不過,此外掛鼓勵強烈的 DIY 精神。送給一個人一條魚,你可以餵他一天;教一個人如何釣魚,你可以餵他一輩子。
最後,但同樣重要的是,其他 WordPress 教師也熱烈邀請來我們的論壇參加。
實用的開發工具
Nano 外掛提供了一種簡單的方法,可以通過管理菜單直接向您的 WordPress 網站添加簡單的功能。
正如您可能已經知道的那樣,WordPress 功能通常通過使用鉤子 (hooks):過濾器和操作來增強。
如果您需要添加簡單的過濾器或操作,並且不想經歷創建新外掛的所有麻煩,您可以使用 Nano Plugin 管理員。這樣更快速,更容易操作。我估計,對於最簡單的任務,您可以節省約 10 倍的打字和點擊。
假設您只需要按標題字母順序排序文章,創建外掛可能需要寫大約十幾行。但是通過使用微型外掛,您可以只指定過濾器名稱 (posts_orderby) 和過濾器內容 (return 'post_title';),讓魔法進行其他所有操作。
如果您只需要一個 nano 外掛,也許使用我們的 Nano Plugin 管理員就不合適。但是,如果您需要更多的外掛,它將使您的工作更加輕鬆。
外掛標籤
開發者團隊
原文外掛簡介
Plugin Home Page
This plugin is two things:
A fun educational tool
Even if you have no idea about WordPress coding, you can still write a tiny nano plugin.
As you get more and more confident in your coding skills you can write more nano plugins and then write full size plugins entirely without relying on the Nano Plugin Manager. And you can still contiune using is it as a development tool.
Also, you get to browse the growing directory of nano plugins. Study them, learn from them or just use them without giving a damn on how they work 🙂
Still, this plugin encourages a strong DIY mentality. Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
Last, but not least, other WordPress teachers are also warmly invited in our forums.
A useful development tool
Nano plugins provide a simple way to add simple functionality to your WordPress site, directly via an administration menu.
As you probably know already, WordPress functionality is usually enhanced by using hooks: filters and actions.
If you need to add a simple filter or action and don’t feel like going through all the hassle of creating a new plugin for it, you can just use the Nano Plugin Manager. It’s faster and easier. I estimate that for the simplest of tasks you can get away with about 10 times less typing and clicking.
Suppose you just need to sort your posts alphabetically by title, a plugin for it might take a dozen lines or so. But by using a nano plugin, you just specify the filter name (posts_orderby) and the filter content (return ‘post_title’;) and let the magic do everything else.
Perhaps if you’d only need one nano plugin, using our Nano Plugin Manager would not be justified. But in case you need more of them, it would make your work much easier.
