Úprava administračního rozhraní prostřednictvím functions.php

**Vlastní logo na nástěnce**

/—code php
// hook the administrative header output
add_action(‚admin_head‘, ‚my_custom_logo‘);

function my_custom_logo() {
echo ‚

‚;
}
\—

**Změna obsahu patičky**

/—code php
function change_footer_admin () {
echo ‚Pohání: WordPress | Vytvořeno: OVX.cz‚;
}

add_filter(‚admin_footer_text‘, ‚change_footer_admin‘);
\—

**Přidání vlastních odkazů**

/—code php
function mytheme_admin_bar_render() {
global $wp_admin_bar;
$wp_admin_bar->add_menu( array(
‚parent‘ => ‚new-content‘, // use ‚false‘ for a root menu, or pass the ID of the parent menu
‚id‘ => ‚new_media‘, // link ID, defaults to a sanitized title value
‚title‘ => __(‚Media‘), // link title
‚href‘ => admin_url( ‚media-new.php‘), // name of file
‚meta‘ => false // array of any of the following options: array( ‚html‘ => “, ‚class‘ => “, ‚onclick‘ => “, target => “, title => “ );
));
}
add_action( ‚wp_before_admin_bar_render‘, ‚mytheme_admin_bar_render‘ );
\—

„Různé úpravy administrační lišty »“:http://digwp.com/2011/04/admin-bar-tricks/

Odstranění části admin menu

WordPress není systém, který by nabízel přebujelé množství funkcí. Administrace je jednoduchá a přehledná. Přesto se občas může hodit, nějakou tu funkci natvrdo schovat před nenechavým klikáním zákazníka.

Celé administrátorské menu je uložené v souboru wp-admin/menu.php – do toho samozřejmě sahat nebudeme. Tento soubor nám postačí k tomu, abychom zjistili jak se menu tvoří. Menu je uložené ve dvou polích: $menu$submenu. Obě tyto pole můžeme svobodně upravit, protože se jedná o globální proměnné. Svobodně upravit znamená například část vymazat. Úpravu těchto polí musíme samozřejmě stihnout před tím, než se pole použijí při vykreslování menu.

Do souboru function.php, který najdete ve wp-content/template/cokoliv, stačí přidat nový hook a funkci:

function edit_remove_menu() {
  global $menu, $submenu;
  unset($menu[25]); // odstraní z menu komentáře
  unset($menu[15]); // odstraní z menu odkazy

  // dale je mozne upravit také submenu
  unset($submenu['edit.php'][15]); // odstraní Příspěvky / Štítky
}

add_action('admin_menu', 'edit_remove_menu');

Na závěr malé upozornění, jednotlivé skryté funkcionality nadále fungují, pouze nejsou vidět v menu. Takže pokud znáte tu správnou adresu, můžete se k nim normálně dostat.

Přizpůsobení administračního rozhraní

**White Label CMS**
„http://wordpress.org/extend/plugins/white-label-cms/“:http://wordpress.org/extend/plugins/white-label-cms/

The White Label CMS plugin is for developers who want to give their clients a more personalised and less confusing CMS.
Allows customization of dashboard and logos, removal of menus, giving editors access to widgets and menus plus lots more.

White Label CMS allows you to remove all the panels from the WordPress dashboard and insert your own panel, which you can use to write a personalised message to your client and link to the important elements in the CMS.

It also allows you to add custom logos to the header and footer as well as the all important login page, giving your client a better branded experience of using their new website.

There is also the option to hide the nag updates as well.

*Alternativy:*

**Web Editors CMS**
„http://wordpress.org/extend/plugins/web-editors-cms/“:http://wordpress.org/extend/plugins/web-editors-cms/

A collection of plugins that optimize WordPress 3 to use (and brand!) as a CMS. Includes our custom plugins and some extra’s. It is intended as an all-in-one package. Using this plugin in combination with the recommended plugins will turn WordPress into a perfect dream CMS tool that you can use for your customers. This plugin will let you know what other plugins to install. You will find the configuration settings in the „Settings >> Web Editors CMS“ menu.

This plugin is intended to make worpdress a CMS… something to dummy down the admin interface for your customers with you branded name it. We recommend a lot of plugins; setting user roles and knowing how to code PHP is really a must especially when using Pods. If this is not you then this plugin is probably not for you.
Features:

– Brand WordPress
– Customize Dashboard
– Add Permalink shortcodes into CMS
– Multiple content blocks
– Cleans up Messy Dashboard
– Easily edit pages from admin menu – Adds all pages in drop down of admin pages menu

**WPlite**
„http://wordpress.org/extend/plugins/wplite/“:http://wordpress.org/extend/plugins/wplite/

Lets you hide ‚unnecessary‘ items from the WordPress administration menu—even the Dashboard. On top of that, you can also hide post meta controls on the Write page, so as to simplify the editing interface.

**iMasters WP Hacks**
„http://wordpress.org/extend/plugins/imasters-wp-hacks/“:http://wordpress.org/extend/plugins/imasters-wp-hacks/

A solution to personalize the WordPress admin to final users. Hide some widgets, show anothers, hide menu itens and controll what your client can see.

**

**Custom Admin Branding**
http://wordpress.org/extend/plugins/custom-admin-branding/

The Custom Admin Branding Plugin allows you to brand and customize the WordPress administration area for clients or for personal use. You can display custom images and styles for the login screen, admin header and footer.

**Úprava administračního rozhraní pomocí actions a filters:**
„http://sixrevisions.com/wordpress/how-to-customize-the-wordpress-admin-area/“:http://sixrevisions.com/wordpress/how-to-customize-the-wordpress-admin-area/
„http://loneplacebo.com/how-to-customize-wordpress-admin-area/“:http://loneplacebo.com/how-to-customize-wordpress-admin-area/

„Viz též »“:https://wordpresso.ovx.cz/uprava-administracniho-rozhrani-pomoci-functions/

„10 Techniques for Customizing the WordPress Admin Panel »“:http://sixrevisions.com/wordpress/10-techniques-for-customizing-the-wordpress-admin-panel/

Skrytý link k administraci


V případě, že váš web není určený pro registraci nových uživatelů, pak vám nemusí příliš vyhovovat zobrazení administračního linku v rámci widgetu Další informace či jeho viditelné zobrazení na jiných místech webu. Plugin AdminLinkBox řeší tento problém velmi snadno. Po jeho aktivaci se odkaz k administraci objeví po najetí myší do levého horního rohu webu, […]

Barevná úprava administrace


Nudí vás aktuální šedá administrace WordPressu a chcete ji trochu oživit? S možností úprav barev a změny loga přichází plugin MyPress. Po aktivaci pluginu si v jeho nastavení můžete pohrát s barvami administrace, přehodit boční menu zleva doprava, dokonce i přehodit písmenka pro čtení zprava doleva. K dalším možnostem pak patří nahrání vlastního loga […]

Pohodlnější přístup k položkám v administračním rozhraní

**Ozh‘ Admin Drop Down Menu**
„http://wordpress.org/extend/plugins/ozh-admin-drop-down-menu/“:http://wordpress.org/extend/plugins/ozh-admin-drop-down-menu/
„http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/“:http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/

Přesune administrační menu nahoru jako horizontální, z menu lze pak pohodlně vybírat i položky druhé úrovně.

*Alternativa*

**Fluency Admin**
„http://wordpress.org/extend/plugins/fluency-admin/“:http://wordpress.org/extend/plugins/fluency-admin/
„http://deanjrobinson.com/projects/fluency-admin/“:http://deanjrobinson.com/projects/fluency-admin/

Obdobný jako předchozí, menu ale zůstává vlevo jako vertikální. Oproti předchozímu umožňuje customizaci přihlašovací stránky.

Vytváření uživatelských polí v administračním rozhraní

**Flutter**
„http://wordpress.org/extend/plugins/fresh-page/“:http://wordpress.org/extend/plugins/fresh-page/
„http://flutter.freshout.us/“:http://flutter.freshout.us/

Flutter is a feature rich WordPress CMS plugin that focuses on easy templating for the developer and simplifies content management for the admin by creating custom write panels that can be fully customized (radio buttons, file uploads, image uploads, checkboxes, etc).

Flutter also includes power image manipulation (automatic resizing, cropping, watermarking, etc), edit in place (works instantly!), and modulation of your themes.

Rozšířené nastavení uživatelských práv

**Capability Manager**
„http://wordpress.org/extend/plugins/capsman/“:http://wordpress.org/extend/plugins/capsman/
„http://alkivia.org/wordpress/capsman/“:http://alkivia.org/wordpress/capsman/

The Capability Manager plugin provides a simple way to manage role capabilities. Using it, you will be able to change the capabilities of any role, add new roles, copy existing roles into new ones, and add new capabilities to existing roles. You can also delegate capabilities management to other users. In this case, some restrictions apply to this users, as them can only set/unset the capabilities they have. With the Backup/Restore tool, you can save your Roles and Capabilities before making changes and revert them if something goes wrong.

Použito na soutěžním webu Fujitsu.

**User Role Editor**
„http://wordpress.org/extend/plugins/user-role-editor/“:http://wordpress.org/extend/plugins/user-role-editor/

With User Role Editor WordPress plugin you can change user role (except Administrator) capabilities easy, with a few clicks. Just turn on check boxes of capabilities you wish to add to the selected role and click „Update“ button to save your changes. That’s done. Add new roles and customize its capabilities according to your needs, from scratch of as a copy of other existing role.

**Adminimize**
„http://wordpress.org/extend/plugins/adminimize/“:http://wordpress.org/extend/plugins/adminimize/

Adminimize is a powerful free plugin that lets you control who has power over every aspect of your website. You can deactivate every possible option you can think of and control what admin, editors, authors, contributors and subscribers can do. The plugin automatically recognises any new user groups you have created too. In short, it gives you complete control over what every user on your site can and cannot do. It works well with a number of other popular plugins too and is updated fairly regularly.
Lets you hide ‚unnecessary‘ items from the WordPress backend.

Úprava administračního rozhraní

**CMS Post Control**
„http://wordpress.org/extend/plugins/wp-cms-post-control/“:http://wordpress.org/extend/plugins/wp-cms-post-control/
„http://wp-cms.com/our-wordpress-plugins/wp-cms-post-control-plugin/“:http://wp-cms.com/our-wordpress-plugins/wp-cms-post-control-plugin/

Post Control gives you complete control over your write options for every user level/role in WordPress. It not only allows you to **hides unwanted items like custom fields, trackbacks, revisions etc**. but also gives you a whole lot more control over how WordPress deals with creating content.

Simplify the and customise the write post and page areas of WordPress and just show the controls you need. Great for de-cluttering – do you really need those pingback and trackback options… now you can decide what users can see and use!

You can also disable autosaves, revisions and disable the Flash uploader and **hide different items for each user role** – administrator, editor, author and even contributor.

[* http://s.wordpress.org/extend/plugins/wp-cms-post-control/screenshot-1.png?r=227376 *]

Vylepšená administrace příspěvků

**Admin Management Xtended**
„http://wordpress.org/extend/plugins/admin-management-xtended/“:http://wordpress.org/extend/plugins/admin-management-xtended/
„http://www.schloebe.de/wordpress/admin-management-xtended-plugin/“:http://www.schloebe.de/wordpress/admin-management-xtended-plugin/

When it comes to editing posts or pages quickly without having to open each post or page in a new tab or window, it isn’t a very efficient process. For those who are using WordPress as a CMS, it’s important to be able to manage contents easily and quickly. That’s what this plugin helps to do.

It adds some icons to the posts/pages management panel with AJAX-driven CMS-known functions like toggling post/page visibility, changing publication date and title without having to open the edit screens or reload the page, plus changing page order with drag’n’drop, inline category management and inline tag management, plus much more.

Implementováno na tomto webu.