內容簡介
wp_helper 具有 4 種不同的外掛程式。
posttype_helper
taxonomy_helper
attachment_helper
adminpage_helper
每個外掛程式都提供額外的功能,讓您可以簡化新文章類型、新分類法、新頁面和管理選單等的開發。
額外功能的詳細列表即將公佈。
在啟用您的外掛程式之前,您必須檢查 wp_helper 是否已啟用,使用類似以下程式碼:
if (defined('WP_HELPER')) {
// 您的程式碼在此 } else { // 如果 WP_HELPER 未定義 add_action('admin_notices', 'myplugin_noframework_notice'); }
function myplugin_noframework_notice(){ global $pagenow; if ( $pagenow == 'plugins.php' ) { echo '
要啟用此外掛程式,您必須安裝並啟用 WP HELPER 外掛程式。
';} }
}}}
外掛標籤
開發者團隊
原文外掛簡介
wp_helper have 4 distinct plugin.
posttype_helper
taxonomy_helper
attachment_helper
adminpage_helper
each provides additional features that allow you to simplify the development of new posttype, new taxonomies, new pages and menu administrator, etc.
Detailed list of additional function is coming soon
You must check if wp_helper is actived before active your plugin, with similar code : {{{
if (defined(‘WP_HELPER’)) {
// your code here } else { // if defined(WP_HELPER) add_action(‘admin_notices’, ‘myplugin_noframework_notice’); }
function myplugin_noframework_notice(){ global $pagenow; if ( $pagenow == ‘plugins.php’ ) { echo ‘
To activate this plugin you must install and activate WP HELPER plugin .
‘; } }
}}}
