Support » Plugin: Visual Form Builder » Hide Recent Visual Form Builder Entries on Dashboard

  • Resolved namrons

    (@namrons)



    This is a great plugin and it’s working perfectly for me but since I allow my users controlled access to my dashboard I need to hide the list of “Recent Visual Form Builder Entries” on the main Dashboard page. I would really appreciate it if you could advise how to do this. Just a suggestion – in a future version perhaps you could add a toggle on the settings page to switch this on or off?

    https://wordpress.org/plugins/visual-form-builder/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Matthew Muro

    (@mmuro)

    You can use the remove_meta_box function.

    // Create the function to use in the action hook
    function remove_vfb_dashboard_widget() {
    	// Only run if the user is an Author or lower.
        if ( ! current_user_can( 'delete_others_pages' ) ) {
            remove_meta_box( 'vfb-dashboard', 'dashboard', 'normal' );
        }
    }
    
    // Hook into the 'wp_dashboard_setup' action to register our function
    add_action( 'wp_dashboard_setup', 'remove_vfb_dashboard_widget' );

    Worked perfectly. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide Recent Visual Form Builder Entries on Dashboard’ is closed to new replies.