<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sudarpo Chang with .NET &#187; Wordpress Tips</title>
	<atom:link href="http://www.sudarpo.net/category/wordpress-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sudarpo.net</link>
	<description></description>
	<lastBuildDate>Wed, 16 May 2012 11:32:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Screen Options in WordPress Admin</title>
		<link>http://www.sudarpo.net/2009/06/screen-options-in-wordpress-admin/</link>
		<comments>http://www.sudarpo.net/2009/06/screen-options-in-wordpress-admin/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 07:41:58 +0000</pubDate>
		<dc:creator>Sudarpo</dc:creator>
				<category><![CDATA[Wordpress Tips]]></category>

		<guid isPermaLink="false">http://www.sudarpo.net/?p=29</guid>
		<description><![CDATA[New WordPress 2.8 has a wonderful feature called SCREEN OPTIONS. This allows user to customize visibility of certain widgets in WordPress Administration page. But the only drawback so far is we cannot configure screen options across all users. With this posts, I will show you how to define screen options across all users. It&#8217;s kinda <a href='http://www.sudarpo.net/2009/06/screen-options-in-wordpress-admin/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>New WordPress 2.8 has a wonderful feature called SCREEN OPTIONS.<br />
This allows user to customize visibility of certain widgets in WordPress Administration page. But the only drawback so far is we cannot configure screen options across all users.</p>
<p>With this posts, I will show you how to define screen options across all users. It&#8217;s kinda troublesome because I use phpMyAdmin, since there is no known plugin yet for doing this (AFAIK ^_^)<br />
<span id="more-29"></span><br />
All screen options are stored in table &#8220;wp_usermeta&#8221;. The important columns are</p>
<ul>
<li>user_id,</li>
<li>meta_key,</li>
<li>meta_value.</li>
</ul>
<p>I will explain briefly about valid meta_key here.</p>
<p>Meta Key: <span style="color: #993300;"><em>screen_layout_post</em></span><br />
Description: Number of columns in POST (valid value: 1, 2)</p>
<p>Meta Key: <span style="color: #993300;"><em>closedpostboxes_post</em></span><br />
Description: This determines widgets in POST (New Post / Edit Post) with CLOSED state, i.e. not expanded.</p>
<p>Meta Key: <span style="color: #993300;"><em>metaboxhidden_post</em></span><br />
Description: This determines widgets in POST (New Post/Edit Post) which were hidden.</p>
<p>Meta Key: <span style="color: #993300;"><em>wp_metaboxorder_post</em></span><br />
Description: [I am not quite clear what this defines. Maybe it has something to do with the order of widgets in POST]</p>
<p>Meta Key: <span style="color: #993300;"><em>manageeditcolumnshidden</em></span><br />
Description: Determines which columns are hidden in POSTS EDIT.</p>
<p>Meta Key: <span style="color: #993300;"><em>managecategoriescolumnshidden</em></span><br />
Description: Determines which columns are hidden in CATEGORY EDIT.<br />
In the example, I hide column Description because if you enter a lengthy description in a category, it will be shown which is quite annoying.</p>
<p>Meta Key: <span style="color: #993300;"><em>edit_per_page; categories_per_page; edit_pages_per_page; edit_comments_per_page</em></span><br />
Description: self-explanatory</p>
<p>Meta Key: <em><span style="color: #993300;">screen_layout_dashboard</span></em><br />
Description: Number of columns in DASHBOARD (valid value: 1-4)</p>
<p>Meta Key: <span style="color: #993300;"><em>closedpostboxes_dashboard</em></span><br />
Description: This determines widgets in DASHBOARD with state CLOSED, , i.e. not expanded.</p>
<p>Meta Key: <span style="color: #993300;"><em>metaboxhidden_dashboard</em></span><br />
Description: This determines widgets in DASHBOARD which were HIDDEN.</p>
<p>The SQL script that you see here can helps to speed up loading in WordPress Admin.</p>
<ul>
<li>Remove unnecessary widgets in POST</li>
<li>Remove unnecessary widgets in DASHBOARD</li>
<li>Hide column description from Category management</li>
<li>Hide column tags from Posts management</li>
</ul>
<p><strong>How to use?</strong></p>
<ol>
<li>Open phpMyAdmin for your blog,</li>
<li>get the user_id of the user you want to define</li>
<li>Change the value of [USER_ID] in the script, e.g.
<pre class="brush: sql; title: ; notranslate">(NULL, '1', 'screen_layout_post', '2'), </pre>
</li>
<li>Run your query.</li>
</ol>
<pre class="brush: sql; title: ; notranslate">
INSERT INTO `wp_usermeta`
(`umeta_id`, `user_id`, `meta_key`, `meta_value`)
VALUES

(NULL, [USER_ID], 'screen_layout_post', '2'),
(NULL, [USER_ID], 'closedpostboxes_post', 'a:7:{i:0;s:16:&quot;tagsdiv-post_tag&quot;;i:1;s:12:&quot;revisionsdiv&quot;;i:2;s:11:&quot;postexcerpt&quot;;i:3;s:10:&quot;postcustom&quot;;i:4;s:13:&quot;trackbacksdiv&quot;;i:5;s:11:&quot;commentsdiv&quot;;i:6;s:11:&quot;sfforumlink&quot;;}'),
(NULL, [USER_ID], 'metaboxhidden_post', 'a:7:{i:0;s:16:&quot;tagsdiv-post_tag&quot;;i:1;s:11:&quot;postexcerpt&quot;;i:2;s:10:&quot;postcustom&quot;;i:3;s:13:&quot;trackbacksdiv&quot;;i:4;s:7:&quot;slugdiv&quot;;i:5;s:11:&quot;commentsdiv&quot;;i:6;s:11:&quot;sfforumlink&quot;;}'),
(NULL, [USER_ID], 'wp_metaboxorder_post', 'a:3:{s:4:&quot;side&quot;;s:65:&quot;submitdiv,categorydiv,authordiv,commentstatusdiv,tagsdiv-post_tag&quot;;s:6:&quot;normal&quot;;s:69:&quot;revisionsdiv,postexcerpt,postcustom,trackbacksdiv,slugdiv,commentsdiv&quot;;s:8:&quot;advanced&quot;;s:11:&quot;sfforumlink&quot;;}'),

(NULL, [USER_ID], 'manageeditcolumnshidden', 'a:2:{i:0;s:4:&quot;tags&quot;;i:1;s:0:&quot;&quot;;}'),
(NULL, [USER_ID], 'managecategoriescolumnshidden', 'a:2:{i:0;s:11:&quot;description&quot;;i:1;s:0:&quot;&quot;;}'),

(NULL, [USER_ID], 'edit_per_page', '10'),
(NULL, [USER_ID], 'categories_per_page', '10'),
(NULL, [USER_ID], 'edit_pages_per_page', '10'),
(NULL, [USER_ID], 'edit_comments_per_page', '10'),

(NULL, [USER_ID], 'screen_layout_dashboard', '2'),
(NULL, [USER_ID], 'closedpostboxes_dashboard', 'a:5:{i:0;s:11:&quot;sf_announce&quot;;i:1;s:24:&quot;dashboard_incoming_links&quot;;i:2;s:17:&quot;dashboard_plugins&quot;;i:3;s:17:&quot;dashboard_primary&quot;;i:4;s:19:&quot;dashboard_secondary&quot;;}'),
(NULL, [USER_ID], 'metaboxhidden_dashboard', 'a:2:{i:0;s:17:&quot;dashboard_primary&quot;;i:1;s:19:&quot;dashboard_secondary&quot;;}');
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sudarpo.net/2009/06/screen-options-in-wordpress-admin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
