The world's most usable C M S's
basis in the Word Press. Word Press is popular for its easy-to-use and numerous
plagina. WordPress as a blogging platform used by more than . Where Visitors
enter the post and inserted.
Add Widget plugin from the WordPress dashboard is moving. Obtain, use the WordPress plugins directory. Manually, I'll discuss how to remove it.
Remove this WordPress Widget none of your theme editor to open the file at the Functions.php.
Please type the following code
Add Widget plugin from the WordPress dashboard is moving. Obtain, use the WordPress plugins directory. Manually, I'll discuss how to remove it.
Remove this WordPress Widget none of your theme editor to open the file at the Functions.php.
Please type the following code
/ / Disable default dashboard widgets
function remove_dashboard_widgets () {
global $ wp_meta_boxes;
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']);
}
add_action ('wp_dashboard_setup', 'remove_dashboard_widgets');
Please refresh your dashboard . In addition to this you can use the WordPress API, which is better than the above code.
/ / Disable default dashboard widgets
function disable_default_dashboard_widgets () {
remove_meta_box ('dashboard_right_now', 'dashboard', 'core');
remove_meta_box ('dashboard_recent_comments', 'dashboard', 'core');
remove_meta_box ('dashboard_incoming_links', 'dashboard', 'core');
remove_meta_box ('dashboard_plugins', 'dashboard', 'core');
remove_meta_box ('dashboard_quick_press', 'dashboard', 'core');
remove_meta_box ('dashboard_recent_drafts', 'dashboard', 'core');
remove_meta_box ('dashboard_primary', 'dashboard', 'core');
remove_meta_box ('dashboard_secondary', 'dashboard', 'core');
}
add_action ('admin_menu', 'disable_default_dashboard_widgets');
In this way, you and your site will be able to create new Widget. Keep a regular on further details
Comments
Post a Comment