<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Option Arrays</title>
	<atom:link href="http://wpmututorials.com/how-to/option-arrays/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpmututorials.com/how-to/option-arrays/</link>
	<description>WordPress multisite how to - making sense of the network feature from what was wordpress mu</description>
	<lastBuildDate>Thu, 26 Jan 2012 22:51:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Jeff</title>
		<link>http://wpmututorials.com/how-to/option-arrays/#comment-10138</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Tue, 03 Aug 2010 23:11:16 +0000</pubDate>
		<guid isPermaLink="false">http://wpmututorials.com/?p=292#comment-10138</guid>
		<description>The concept of the whitelist array never occurred to me! Wow. What a security hole if I don&#039;t use it. Well, maybe not TOO bad, but still.

Thanks for that. I learned the array tip from studying the Subscribe To Comments plugin and thought it was genius.</description>
		<content:encoded><![CDATA[<p>The concept of the whitelist array never occurred to me! Wow. What a security hole if I don&#8217;t use it. Well, maybe not TOO bad, but still.</p>
<p>Thanks for that. I learned the array tip from studying the Subscribe To Comments plugin and thought it was genius.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: webmaestro</title>
		<link>http://wpmututorials.com/how-to/option-arrays/#comment-5764</link>
		<dc:creator>webmaestro</dc:creator>
		<pubDate>Tue, 19 Jan 2010 16:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://wpmututorials.com/?p=292#comment-5764</guid>
		<description>In some places you indicated &#039;fb_dash_widget&#039;, whilst in others you indicate &#039;fd_dash_widget&#039;... Thanks for the good stuff!</description>
		<content:encoded><![CDATA[<p>In some places you indicated &#8216;fb_dash_widget&#8217;, whilst in others you indicate &#8216;fd_dash_widget&#8217;&#8230; Thanks for the good stuff!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A List of Awesome WordPress Blogs to Follow</title>
		<link>http://wpmututorials.com/how-to/option-arrays/#comment-1351</link>
		<dc:creator>A List of Awesome WordPress Blogs to Follow</dc:creator>
		<pubDate>Tue, 27 Oct 2009 12:40:04 +0000</pubDate>
		<guid isPermaLink="false">http://wpmututorials.com/?p=292#comment-1351</guid>
		<description>[...] Option Arrays [...]</description>
		<content:encoded><![CDATA[<p>[...] Option Arrays [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kim</title>
		<link>http://wpmututorials.com/how-to/option-arrays/#comment-1297</link>
		<dc:creator>Kim</dc:creator>
		<pubDate>Tue, 13 Oct 2009 18:56:25 +0000</pubDate>
		<guid isPermaLink="false">http://wpmututorials.com/?p=292#comment-1297</guid>
		<description>Oops: forgot to say two things: 

1. while fetching the rows from the options table, don&#039;t forget to maybe_unserialize() your option values!

2. And the whole point of this: avoid doing too much get_option() calls.

Greets</description>
		<content:encoded><![CDATA[<p>Oops: forgot to say two things: </p>
<p>1. while fetching the rows from the options table, don&#8217;t forget to maybe_unserialize() your option values!</p>
<p>2. And the whole point of this: avoid doing too much get_option() calls.</p>
<p>Greets</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kim</title>
		<link>http://wpmututorials.com/how-to/option-arrays/#comment-1296</link>
		<dc:creator>Kim</dc:creator>
		<pubDate>Tue, 13 Oct 2009 18:52:58 +0000</pubDate>
		<guid isPermaLink="false">http://wpmututorials.com/?p=292#comment-1296</guid>
		<description>Hi guys,

I&#039;ve been working on my own ecommerce plugin now for almost a year...

It&#039;s operational in v1 @ http://www.wenskaartenshop.be, v2 is now in test @ http://testground.wenskaartenshop.be, excuse the &quot;spam&quot;, but I&#039;d love to hear some feedback from fellow WP lovers :)

Now u can imagine an elaborate plugin like my ecommerce plugin requires an extensive list of options. 

The technique I used on my first plugin (WP Google Positioner) was to use 1 option array for all my plugins&#039; options, like  described above.

With my ecommerce plugin (which houses 8 widgets, full shopping cart and checkout, product catalog (with the new WP taxonomy system which I used for my &quot;product&quot; type) the full option list is about 150 items.

Using a serialized TEXT (mysql) field was not a serious method to go with, as some option-values contain pieces of HTML code of about 500-1000 chars.

As I have yet to cover the caching part of my plugin, my concern also lies with the amount of database queries I have to run on each page-load. 
As the product catalog is very extensive and has a &quot;custom field&quot; feature, and some categories contain more then 100 products, simple SQL selects would not cover the whole load without having to use too much queries.

So I come to the point of my little story (I still hope to receive some feedback) : 

If you would need a large array of options, a technique you *could* use is: 
1. Prefix all your plugins&#039; options with something like &#039;plugin_&#039;
2. Do a simple SQL: SELECT * FROM wp_options WHERE option_name LIKE &#039;plugin_%&#039;
3. fetch the results and put in your plugin option class-property or variable.

Hope to be of any assistance,

Kim</description>
		<content:encoded><![CDATA[<p>Hi guys,</p>
<p>I&#8217;ve been working on my own ecommerce plugin now for almost a year&#8230;</p>
<p>It&#8217;s operational in v1 @ <a href="http://www.wenskaartenshop.be" rel="nofollow">http://www.wenskaartenshop.be</a>, v2 is now in test @ <a href="http://testground.wenskaartenshop.be" rel="nofollow">http://testground.wenskaartenshop.be</a>, excuse the &#8220;spam&#8221;, but I&#8217;d love to hear some feedback from fellow WP lovers <img src='http://wpmututorials.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Now u can imagine an elaborate plugin like my ecommerce plugin requires an extensive list of options. </p>
<p>The technique I used on my first plugin (WP Google Positioner) was to use 1 option array for all my plugins&#8217; options, like  described above.</p>
<p>With my ecommerce plugin (which houses 8 widgets, full shopping cart and checkout, product catalog (with the new WP taxonomy system which I used for my &#8220;product&#8221; type) the full option list is about 150 items.</p>
<p>Using a serialized TEXT (mysql) field was not a serious method to go with, as some option-values contain pieces of HTML code of about 500-1000 chars.</p>
<p>As I have yet to cover the caching part of my plugin, my concern also lies with the amount of database queries I have to run on each page-load.<br />
As the product catalog is very extensive and has a &#8220;custom field&#8221; feature, and some categories contain more then 100 products, simple SQL selects would not cover the whole load without having to use too much queries.</p>
<p>So I come to the point of my little story (I still hope to receive some feedback) : </p>
<p>If you would need a large array of options, a technique you *could* use is:<br />
1. Prefix all your plugins&#8217; options with something like &#8216;plugin_&#8217;<br />
2. Do a simple SQL: SELECT * FROM wp_options WHERE option_name LIKE &#8216;plugin_%&#8217;<br />
3. fetch the results and put in your plugin option class-property or variable.</p>
<p>Hope to be of any assistance,</p>
<p>Kim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://wpmututorials.com/how-to/option-arrays/#comment-1248</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Wed, 30 Sep 2009 06:18:41 +0000</pubDate>
		<guid isPermaLink="false">http://wpmututorials.com/?p=292#comment-1248</guid>
		<description>I&#039;ll have to check this out - we have been looking for something to integrate facebook into wpmu on another project.

I love your idea of using areas instead of more entries into wp_options -- too many things just take that &quot;option&quot; for granted.  

In a recent plugin we had done we had to store about 400 variables, and chose to write them to a .txt file vs the wp_options.  but your array idea might be a better choice.</description>
		<content:encoded><![CDATA[<p>I&#8217;ll have to check this out &#8211; we have been looking for something to integrate facebook into wpmu on another project.</p>
<p>I love your idea of using areas instead of more entries into wp_options &#8212; too many things just take that &#8220;option&#8221; for granted.  </p>
<p>In a recent plugin we had done we had to store about 400 variables, and chose to write them to a .txt file vs the wp_options.  but your array idea might be a better choice.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

