寄稿者のダッシュボードメニューから”Subscribe2"を消したい
-
現在ポータルサイトを運用していて、
今現在、寄稿者がダッシュボード上で見えるメニューについては、
下記のコードをつかって、見せるメニュー、見せないメニューをコントロール
していました。運用の途中で、「Subscribe2」というメール一斉送信のためのプラグインを
導入したのですが、そのメニューが寄稿者側にも表示されてしまったため、
unset($wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘dashboard_Subscribe2‘]);
を追加しましたが、消すことができませんでした。どなたか、このボタンの消し方についてご教示いただけないでしょうか。
何卒よろしくお願いいたします。remove_all_actions('wp_dashboard_setup'); function example_remove_dashboard_widgets() { // Globalize the metaboxes array, this holds all the widgets for wp-admin global $wp_meta_boxes; // Remove the quickpress widget unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']); unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']); unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']); unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']); unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']); unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts']); unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']); unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']); }
4件の返信を表示中 - 1 - 4件目 (全4件中)
4件の返信を表示中 - 1 - 4件目 (全4件中)
- トピック「寄稿者のダッシュボードメニューから”Subscribe2"を消したい」には新たに返信することはできません。