Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Cameron Jones

    (@cameronjonesweb)

    Hi @crow3916

    I’ll look to introduce a filter in an update, but in the meantime you can use this code to remove the metabox for non-admins:

    function fbpp_remove_dashboard_widget() {
    	if ( current_user_can( 'manage_options' ) ) {
    		remove_meta_box( 'facebook-page-plugin-shortcode-generator', 'dashboard', 'side' );
    	}
    }
    add_action('wp_dashboard_setup', 'fbpp_remove_dashboard_widget' );

    Users can also hide it from the screen options on the dashboard.

    Thanks,
    Cameron

    Thread Starter html php

    (@crow3916)

    Thanks Heaps Cameron.

    Plugin Author Cameron Jones

    (@cameronjonesweb)

    To follow up, I’m finally getting around to nearly releasing 1.6. In the new version the dashboard widget will only be visible to users who can edit posts, and you can filter the capability with the facebook_page_plugin_dashboard_widget_capability hook.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘dashboard shortcode generator admin dashboard only’ is closed to new replies.