03 add_menu_page 設定用戶

03 add_menu_page 設定用戶

管理者
add_menu_page('Memberships', 'Memberships', 'administrator','CWF_Memberships*', 'myp_memberships');
編輯者
add_menu_page('Memberships', 'Memberships', 'editor','CWF_Memberships', 'myp_memberships');

編輯者
add_menu_page('Resources', 'Resources', 'editor' , 'CWF_Resources', 'myp_resources');

作者
add_menu_page('Resources', 'Resources', 'author' , 'CWF_Resources', 'myp_resources');

Administrator – Somebody who has access to all the administration features

Editor – Somebody who can publish posts, manage posts as well as manage other people’s posts, etc.

Author – Somebody who can publish and manage their own posts

Contributor – Somebody who can write and manage their posts but not publish posts

Subscriber – Somebody who can read comments/comment/receive news letters, etc.

wordpress
CH02用戶資料CH03基本APICH05 分類頁面Category.phpCH09Screen Options(顯示選項)CH10外掛pluginsCH11 add_actionCH12 add_filterCH13Meta Box(自訂區塊)CH14widget(自訂模組)CH15 DBCH16AJAXCH17ShortcodeCH20 wordpress muCH30WooCommerce