hyyan / dashboard
Wordpress plugin to let themes customize the dashboard in their own way
Installs: 71
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:wordpress-plugin
Requires
- php: >=5.3.2
- composer/installers: ~1.0
This package is not auto-updated.
Last update: 2020-01-20 04:01:16 UTC
README
Wordpress plugin to let themes customize the dashboard in their own way
Features
- Changing Dashboard Title
- Changing Dashboard Heading
- Changing Welcome Panel Content Or Disable it
- Changing version
- Changing Copyright
- Removing selected dashboard metaboxes (default ones only)
- Removing adminbar menus
- Removing menu pages
- Disable theme switch
How to install
Classical way
- Download the plugin as zip archive and then upload it to your wordpress plugins folder and extract it there.
- Activate the plugin from your admin panel
Composer way
- run composer command :
composer require hyyan/dashboard
How to use
Plugin configutaion
The plugin comes with following configuration as default :
$default = array( // dashboard title 'title' => __('Dashboard'), // dashboard heading 'heading' => __('Dashboard'), // welcome panel file 'welcome-panel' => '/welcome-panel.php', // array of dashboardd metaboxes to remove 'remove-metaboxes' => array( 'dashboard_plugins' => true, 'dashboard_primary' => true, 'dashboard_secondary' => true, 'dashboard_incoming_links' => true, 'dashboard_quick_press' => false, 'dashboard_recent_drafts' => false, 'custom_help_widget' => false, 'welcome_panel' => false, ), // diable the ability to switch themes 'disable-theme-switch' => true, // replace wordpress version 'version' => '', // replace wordpress copyright 'copyright' => '', // adminbar menus to remove 'remove-adminbar-menus' => array( 'wp-logo', 'about', 'wporg', 'documentation', 'support-forums', 'feedback', 'updates', 'themes' ), // menu pages to remove 'remove-menus' => array() );
You can override the default configuration using add_filter
function like
in the following example :
// in the your theme's functions.php file add_filter('Hyyan\Dashboard.options', function($default) { $default['title'] = 'This is a test'; $default['heading'] = 'This is heading'; $default['remove-metaboxes'] = array_merge($default['remove-metaboxes'], array( 'dashboard_quick_press' => false )); return $default; });
Contributing
Everyone is welcome to help contribute and improve this plugin. There are several ways you can contribute:
- Reporting issues (please read issue guidelines)
- Suggesting new features
- Writing or refactoring code
- Fixing issues