
內容簡介
建立使用自訂短碼的 Gutenberg 區塊。
清晰強大且輕量的方式,可使用:
* HTML/PHP 代碼
* CSS 代碼
* Javascript 代碼
* 具有 Ajax 呼叫的 PHP 後端代碼
* CSS 和 Javascript 檔案。
* 其他資源檔案:圖片、PDF 文件、…
此外掛不會干擾 WordPress 資料庫,不會寫入任何欄位,因此非常輕量。
Ajax 呼叫受到 nonce 保護。(https://developer.wordpress.org/themes/theme-security/using-nonces/)
短碼可以在文章、頁面、文字小工具和 HTML 小工具中插入。
可以獨立啟用/停用短碼。
為短碼所需的自訂 CSS 和 Javascript 檔案已經排入索引頁。
清晰又有效率:只要目前前端頁面沒有該短碼,就不會執行任何已保存的短碼相關內容。
短碼可用於注入某種類型的 PHP、Javascript、CSS 或 Ajax(PHP) 代碼。
此外掛頁面有已經建立的短碼庫: http://shortcodescreator.com
***** 警告 ********
- 如果您從低於 1.9.7 的版本更新此外掛,請務必備份短碼,並在升級後還原短碼。
***** 提示 ********
- 由於短碼建立的彈性,無效的程式碼可能會損壞您的網站。如果發生此情況,您可以在網址末端加上 ?safe-mode=true,以啟動每頁的安全模式,禁用所有已建立的短碼執行。
外掛標籤
開發者團隊
② 後台搜尋「Shortcodes Blocks Creator Ultimate」→ 直接安裝(推薦)
原文外掛簡介
Create Gutenberg Blocks for custom created shortcodes.
A clean, powerful and lightweight way to generate and include custom shortcodes with:
* HTML/PHP code.
* CSS code.
* Javascript code.
* PHP backend code for Ajax calls.
* CSS and Javascript files.
* Other resources files: images, pdfs, …
The plugin doesn’t interfere with the wordpress database. Nothing is wrote there. Very lightweight.
Ajax calls are secured with nonces. (https://developer.wordpress.org/themes/theme-security/using-nonces/)
Shortcodes can be inserted in post, pages, text widgets and html widgets.
Shortcodes can be enabled/disabled individually.
Custom CSS and Javascript files required for the shortcode are enqueued in the head section.
Clean and efficient: Nothing about any saved shortcode is executed if the shortcode is not present in the current frontend page.
Shortcodes can be used to inject some kind of php, javascript, css or ajax (php) code.
Repository of already made shortcodes in the plugin page: http://shortcodescreator.com
***** WARNING ********
– Please, if you come from version less than 1.9.7 you must backup the shortcodes before upgrading the plugin and restore them after upgrade.
***** TIP ********
– Due to the flexibility of the shortcode creation, an invalid code can broke your site. If so, you can activate safe mode on a per-page basis by appending ?safe-mode=true to the URL. In this manner, it disables the execution of all the shortcodes created.
