內容簡介
透過在管理儀表板中的「DX Templates」選單,建立像主題資料夾中的頁面模板。可將 HTML、JS 和 PHP 程式碼貼上,設定它們為文章、頁面或自訂文章類型中的其中一種,並透過下拉式選單套用頁面模板以進行評估。
注意:使用 eval() 函數。但這僅供管理員使用,一般使用者可能會導致許多麻煩,或上傳外部有害的外掛程式。
此外,這裡提供完整的示範:
外掛標籤
開發者團隊
原文外掛簡介
Create page templates like the ones in your theme folder but through a “DX Templates” menu in your Admin dashboard. Paste HTML, JS and PHP code which you could assign to your posts, pages or custom post types via a meta box dropdown. Create page templates and apply them to be evaluated.
Note: eval() function is used. However, it is available only for admin users to submit code and normally admin users could do a lot harm or upload external harmful plugins as well.
A complete demo is available here:
