Customizing WordPress admin is simpler and easier to manage

Source: Internet
Author: User
Keywords WORDPRESS NBSP custom admin backstage more

&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; WordPress is an open source, free blog (blog, weblog) engine developed using the PHP language and MySQL database, and users can build their own blogs on servers that support PHP and MySQL databases. WordPress is a very powerful blog system, many plug-ins, easy to expand the function. Easy to install and use. At present, WordPress has become the mainstream Blog to build a platform.

WordPress is the original version of the English version, UTF-8 code, the latest edition of June 18, 2010 released 3.0. To meet the growing needs of Chinese users to open up the official Chinese site and provide Chinese version of the program download. And enthusiasts have developed Chinese language packs to support Chinese. However, because of the encoding reason used, the Chinese character truncation will appear garbled. However, Mulberry netizens made the Chinese WordPress Toolbox plug-in can solve this problem.

WordPress can be said to be the world's most advanced weblog program. Most of the programs currently being developed are modeled on it. It can grasp the search engine more, after you use WordPress and master several plug-ins, for optimization will not worry too much, it will think for you more. WordPress has a number of third-party development of free templates, installation is simple and easy to use. However, to make a template of your own, you need to have a certain degree of expertise. For example, you should at least understand the HTML code, CSS, PHP and other related knowledge.

As a powerful publishing platform, WordPress has its own commented features, innovative GUI, article and page editing capabilities, and a variety of handy built-in tools, including the "Import" feature, user roles and permissions, and more.

But so many functions, how many are we commonly used? Although WordPress has been quite simple to use, the user is also quite friendly, but through the customization of WordPress management backstage, we can make WordPress simpler and easier to manage.

WordPress built-in hooks (including "Filter" and "action") for our custom WordPress backstage provides the perfect solution. By "checking in" rather than modifying WordPress's core programs, you can safely make changes without affecting the integrity of your installation files.

The code described below will be completed in the functions.php file.

Disable Console Widget

Login to WordPress Backstage, the first to see is the WordPress dashboard, a similar message center place, by the "WordPress Development Blog", "other WordPress News" and other widgets. For the average user, the information provided here is not necessarily what you will often need to see.

We can use Wp_dashboard_setup to remove these widgets. During execution, we use the unset () function to remove unwanted widgets. All we need to do is call Add_action () with Wp_dashboard_setup as the first argument, remove_dashboard_widgets as the second argument.

The following are the referenced contents:
function Remove_dashboard_widgets () {
global$wp_meta_boxes;
unset ($wp _meta_boxes[' dashboard '] [' normal '] [' core '] [' dashboard_plugins ']];
unset ($wp _meta_boxes[' dashboard '] [' normal '] [' core '] [' dashboard_recent_comments ']];
unset ($wp _meta_boxes[' dashboard '] [' side '] [' core '] [' dashboard_primary ']];
unset ($wp _meta_boxes[' dashboard '] [' normal '] [' core '] [' dashboard_incoming_links ']];
unset ($wp _meta_boxes[' dashboard '] [' normal '] [' core '] [' dashboard_right_now ']];
unset ($wp _meta_boxes[' dashboard '] [' side '] [' core '] [' dashboard_secondary ']];
}

Add_action (' Wp_dashboard_setup ', ' remove_dashboard_widgets ');

The effect is as follows:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.