<?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>Jeff Sayre Webtrepreneur &#187; developers</title>
	<atom:link href="http://jeffsayre.com/tag/developers/feed/" rel="self" type="application/rss+xml" />
	<link>http://jeffsayre.com</link>
	<description>Thoughts on startups, leadership, the Web, and disruptive technologies</description>
	<lastBuildDate>Thu, 29 Jul 2010 14:34:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<atom:link rel="next" href="http://jeffsayre.com/tag/developers/feed/?page=2" />

		<item>
		<title>WordPress Hook Sniffer v0.14 Released!</title>
		<link>http://jeffsayre.com/2010/07/28/wordpress-hook-sniffer-v0-14-released/</link>
		<comments>http://jeffsayre.com/2010/07/28/wordpress-hook-sniffer-v0-14-released/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 14:34:44 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[Social Media & Semantic Web]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=710</guid>
		<description><![CDATA[As I posted about ten-days ago, my WordPress Hook Sniffer had a cold, its sniffer all clogged up and not functioning properly. Today, I release a once-again healthy, new and improved Hook Sniffer plugin for all WordPress plugin developers. There are a number of nice improvements.
(You can download the latest version of WordPress Hook Sniffer [...]]]></description>
			<content:encoded><![CDATA[<p>As I posted about ten-days ago, <a href="http://jeffsayre.com/2010/07/17/important-developers-notice-please-deactivate-wordpress-hook-sniffer-for-the-time-being/">my WordPress Hook Sniffer had a cold</a>, its sniffer all clogged up and not functioning properly. Today, I release a once-again healthy, new and improved Hook Sniffer plugin for all WordPress plugin developers.<span id="more-710"></span> There are a number of nice improvements.</p>
<p>(You can <a href="http://wordpress.org/extend/plugins/wordpress-hook-sniffer/">download the latest version of WordPress Hook Sniffer here</a>. Please read the readme.txt file for important usage and installation notes.)</p>
<p>After the bug fixes, the most noticeable improvement is that you no longer need to manually install the modified plugin.php file&mdash;the file that gives hook sniffer its abilities. The plugin now automatically installs the modified plugin.php file upon plugin activation and then reinstalls the original, stock WP version of the /wp-includes/plugin.php file upon plugin deactivation. This means that when you deactivate the plugin, you can rest assured that WP Hook Sniffer no longer has any influence over the operation of WordPress.</p>
<p>As there are important differences between the /wp-includes/plugin.php files of WP 2.9.2 and WP 3.0, WP Hook Sniffer now requires WordPress 3.0. Upon activation, an automatic version check is performed to make sure that WP Hook Sniffer is installed on the proper version of WordPress. If the plugin is installed on an older version of WordPress, it will not run. A warning message is displayed in the Plugins directory and in the WP Hook Sniffer Settings screen.</p>
<p>Also, I’ve versioned the modified plugin.php file that comes with WP Hook Sniffer. Now, when you activate the plugin, it runs a check to make sure that the proper version of the modified plugin.php file is installed in /wp-includes.</p>
<p>Finally, I added a CSS file to improve proper code separation&ndash;the older version simply had inline CSS definitions&ndash;and renamed all CSS selectors to make them unique to the plugin.</p>
<p>If WordPress Hook Sniffer has become an indispensable tool in your WP plugin development toolkit, please donate to help me keep this plugin updated and its sniffer healthy! Thank you!</p>
<div class="paypal_button">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick"/>
<input type="hidden" name="hosted_button_id" value="VTHMENKR9ZWB4"/>
<table>
<tr>
<td>
<input type="hidden" name="on0" value="Sponsorship Levels"/>Sponsorship Levels</td>
</tr>
<tr>
<td>
<select name="os0">
							<option value="Supporter">Supporter $15.00</option><br />
							<option value="Donor">Donor $25.00</option><br />
							<option value="Sponsor">Sponsor $50.00</option><br />
							<option value="Benefactor">Benefactor $100.00</option><br />
							<option value="Patron">Patron $250.00</option><br />
							<option value="Open Source Angel">Open Source Angel $500.00</option><br />
							<option value="Holy Cow!">Holy Cow! $1,000.00</option><br />
						</select>
</td>
</tr>
</table>
<input type="hidden" name="currency_code" value="USD"/>
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"/>
						<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"/><br />
					</form>
<p><em>If you are a corporate user, consultant, plugin developer, or theme designer and profit from using my plugin, please consider donating at one of the upper levels. Thank you!</em></p>
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2010/07/28/wordpress-hook-sniffer-v0-14-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Important Developers&#8217; Notice:  Please deactivate WordPress Hook Sniffer for the time being</title>
		<link>http://jeffsayre.com/2010/07/17/important-developers-notice-please-deactivate-wordpress-hook-sniffer-for-the-time-being/</link>
		<comments>http://jeffsayre.com/2010/07/17/important-developers-notice-please-deactivate-wordpress-hook-sniffer-for-the-time-being/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 16:26:52 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=703</guid>
		<description><![CDATA[If you are using my WordPress Hook Sniffer plugin, I ask that you please deactivate it at this time and remove the modified plugin.php file&#8211;the one that comes with the plugin&#8211;replacing it with the original version that ships with WordPress. Make sure that you use the one that comes with the version of WordPress you [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using my WordPress Hook Sniffer plugin, I ask that you please deactivate it at this time and remove the modified plugin.php file&ndash;the one that comes with the plugin&ndash;replacing it with the original version that ships with WordPress.<span id="more-703"></span> Make sure that you use the one that comes with the version of WordPress you are running.</p>
<p>I have been having a few issues with BuddyPress development over the past week. I went through all the usual techniques to isolate the issue, finally deactivating all my 3rd-party plugins. But, the issue remained. Finally, I wondered about my WordPress Hook Sniffer plugin. I realized that although it was deactivated, it might be negatively affecting the operation of WordPress if the modified plugin.php file that comes with the plugin had issues. I replaced the modified version of plugin.php with the original one that ships with my version of WordPress, and bingo, the issues went away. All I could think was crap&mdash;especially as I say this in the installation instructions:</p>
<p>&#8220;The modifications to WordPress’ standard Plugin API file are used exclusively for WordPress Hook Sniffer. They should not affect the functioning of the rest of WordPress.&#8221;</p>
<p>In fact, this statement is still technically correct. The culprit is that when I updated the modified plugin.php file for last week&#8217;s version 0.13 update to the WP Hook Sniffer, I failed to use the proper base plugin.php file. I used the one that ships with WP 2.9.2 and not WP 3.0. Even though I thought I had done a sufficient parity check between these two files, I had failed to notice a few important changes.</p>
<p><strong>WordPress Core Developers please note</strong>: if you change a function you should indicate as much in the inline documentation. Please use the <a href="http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_tags.version.pkg.html">@version PHPDocumenter tag</a> to indicate that the function has changed.  The @since tag version indicator is not helpful if the function has changed.</p>
<p>What issues did I have that caused me to discover this problem? The WordPress &#8220;wp&#8221; action hook was not firing. Yep. That is a big problem, especially if you are doing development work. Interestingly enough, most of BuddyPress continued to function as expected, except for a few features that used to work but suddenly stopped working&mdash;right at the time I installed the updated version of WP Hook Sniffer. Of course, I failed to notice this for several days.</p>
<p>I have gone through the stock plugin.php file&ndash;with a very fine-toothed comb&ndash;and ferreted out all the changes. I am in the process of updating the modified plugin.php file that WP Hook Sniffer is required to use. I want to make sure that it is adequatley tested before releasing an updated version. Look for the updated version with a fixed plugin.php file to be available either Sunday or Monday.</p>
<p>With this pending update, WordPress Hook Sniffer will require WordPress 3.0. Therefore, if you want to use it in an older version of WordPress, you will have to install Version 0.12 of WP Hook Sniffer. Please note, I will only support the most recent version of WordPress Hook Sniffer.</p>
<p>I apologize if this has caused you to lose valuable development time. I know that I have lost several days of productive coding due to this issue. There were obviously some important changes between WP 2.9.x and WP 3.0. Even though I thought I had properly assessed potential changes within the plugin.php file, I had not. I guess I need more sleep, more caffeine, fewer late-night alien visits, or some combination of those three.</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2010/07/17/important-developers-notice-please-deactivate-wordpress-hook-sniffer-for-the-time-being/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>The Growing Panoply of Specialty BuddyPress Developer and Administration Tools</title>
		<link>http://jeffsayre.com/2010/05/08/the-growing-panoply-of-specialty-buddypress-developer-and-administration-tools/</link>
		<comments>http://jeffsayre.com/2010/05/08/the-growing-panoply-of-specialty-buddypress-developer-and-administration-tools/#comments</comments>
		<pubDate>Sat, 08 May 2010 18:27:42 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=658</guid>
		<description><![CDATA[When it comes to the availability of useful, specialty plugins for site administrators and plugin developers, BuddyPress may be approaching an interesting inflection point. Recently, several new plugins have been released that help site administrators better understand and manage their network or offer developers insight into vexing issues and help make coding their WordPress and [...]]]></description>
			<content:encoded><![CDATA[<p>When it comes to the availability of useful, specialty plugins for site administrators and plugin developers, BuddyPress may be approaching an interesting inflection point. Recently, several new plugins have been released that help<span id="more-658"></span> site administrators better understand and manage their network or offer developers insight into vexing issues and help make coding their WordPress and BuddyPress plugins a little easier.</p>
<p>These are not the normal, run-of-the-mill plugins that extend BuddyPress by adding additional functionality for a site’s members, or allow a site administrator to selectively alter the core functionality of BuddyPress. Instead, the plugins that I’m excited about are  specifically targeted to providing site administrators and developers with unique services. I call these tools to differentiate them from the general-purpose plugins.</p>
<p>Although there are currently only a handful of such tools available, I hope that these releases indicate a trend. The WordPress ecosystem needs more specialty tools for site administrators and plugin developers.</p>
<p>So, in no particular order of importance, here is a listing of the more interesting plugins that provide useful tools for the site administrator’s or developer’s toolbox.</p>
<p><strong>Developer Tools</strong></p>
<p><a href="http://jeffsayre.com/2010/04/29/introducing-wordpress-hook-sniffer-a-developer-plugin/ "><em>WordPress Hook Sniffer</em></a>: This is a tool I recently released that helps plugin developers determine the sequence in which action and filter functions are fired. It provides a window into the inner workings of the WordPress Plugin API and can help a developer figure out why a custom action or filter hook or function is not working as intended.</p>
<p><a href="http://wordpress.org/extend/plugins/demo-data-creator/"><em>Wordpress MU Demo Data Creator</em></a>: Provides a utility for populating your WPMU development sandbox database with dummy data. Why waste time creating your own dummy data to test your plugins when it can be auto generated for you.</p>
<p><a href="http://wordpress.org/extend/plugins/buddypress-skeleton-component/"><em>BuddyPress Skeleton Component</em></a>: This is not a new developer tool. In fact, as an example BuddyPress plugin component, it is the grand progenitor of many BuddyPress plugins.</p>
<p><a href="http://wordpress.org/extend/plugins/bp-template-pack/"><em>BuddyPress Template Pack</em></a>: This is not a developer’s tool per say. But I think it deserves listing nonetheless. It is actually a theme designer’s tool that helps make a custom WordPress theme compatible for use as a BuddyPress theme.</p>
<p><strong>Site Administrator Tools</strong></p>
<p><a href="http://teleogistic.net/code/buddypress/bp-system-report/"><em>BP System Report</em></a>: This tool gathers useful network intelligence on a site’s member and group activity. It provides a site administrator with usage trends and statistics, offering important insights into the health of their community.</p>
<p><a href="http://wordpress.org/extend/plugins/import-from-ning/"><em>Import from Ning</em></a>: I thought I should throw this one in as well as it is a tool that helps social network operators. It provides some utility in helping to migrate a Ning network to BuddyPress. As Ning does not offer too much help in migrating existing networks to competing platforms, this tool is not a panacea to your Ning-networking woes&mdash;but it is a great start!</p>
<p><strong>Plugin Developers Need Your Support</strong></p>
<p>Creating a high-quality plugin takes more time than most people realize. In fact, it can take as much time if not more than creating a top-quality theme. But plugin developers rarely receive the same financial rewards that premium theme designers do.</p>
<p>My limited, empirical data shows that with the number of downloads of my current three WordPress / BuddyPress plugins, that less than 0.1% (yes, that is less than one-tenth of  one percent) bother to donate. If my plugins received poor reviews, that would be understandable. But, as my lowest-rated plugin received a 4.5-star review out of 5, the lack of donations obviously has nothing to do with perceived quality. <em>Note: Although I am a listed contributor to the BuddyPress Skeleton Component, I do not include that as one of  my three plugins.</em></p>
<p>Whereas the greater WordPress community appears to have no issue with spending money on what are called premium themes, there seems to be a disconnect when it comes to supporting the developers of the plugins that help make their communities successful. Yes, great themes definitely provide an important face to a community, but it’s important to remember that plugins&ndash; along with the core functionality of WordPress and BuddyPress&ndash;provide the foundation to our networks.</p>
<p>So please generously donate to plugin developers and help keep them coding their wonderful plugins be they general purpose or specialty in nature.</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2010/05/08/the-growing-panoply-of-specialty-buddypress-developer-and-administration-tools/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Introducing WordPress Hook Sniffer: a Developer Plugin</title>
		<link>http://jeffsayre.com/2010/04/29/introducing-wordpress-hook-sniffer-a-developer-plugin/</link>
		<comments>http://jeffsayre.com/2010/04/29/introducing-wordpress-hook-sniffer-a-developer-plugin/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 20:26:56 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=575</guid>
		<description><![CDATA[As a developer, one of the benefits to sophisticated Open Source projects like WordPress and BuddyPress is that a significant amount of foundational code is already in place. This makes adding additional functionality, additional value, to the platform easier. You just create a plugin.
As a developer, one of the downsides to Open Source projects like [...]]]></description>
			<content:encoded><![CDATA[<p>As a developer, one of the benefits to sophisticated Open Source projects like WordPress and BuddyPress is that a significant amount of foundational code is already in place. This makes adding additional functionality, additional value, to the platform easier. You just create a plugin.<span id="more-575"></span></p>
<p>As a developer, one of the downsides to Open Source projects like WordPress and BuddyPress is that a significant amount of foundational code is already in place. There are hundreds of functions, classes, methods, and general code that you never actually get to know. Sure, you might call them from within your code, you might know how and when to use them, but you more than likely do not understand how and why they work and what they actually do to accomplish their task.</p>
<p>Why? Because you were (more than likely) not part of the team that wrote the code, that figured out what each function was required to accomplish and in what ways that code would interact with other parts of the foundation.</p>
<p>This is exactly the situation I found myself in several weeks ago as I was trying to figure out why one of my custom do_action events in my BuddyPress Privacy Component was not working as I had expected. My investigation into this issue not only opened my eyes into the inner workings of WordPress’ Plugin API, but also helped me figure out why a few <a href="http://trac.buddypress.org/ticket/2325">BuddyPress action events were not behaving as intended</a>.</p>
<p><strong>Understanding Hook Firing Sequence</strong></p>
<p>How can you know the firing sequence of action functions or filter functions that you attach to existing WordPress and BuddyPress hooks? Why is this even important?</p>
<p>To answer the second question, read my article, <a href="http://jeffsayre.com/2010/04/29/wordpress-hooks-barbs-and-snags/"><em>WordPress Hooks, Barbs, and Snags</em></a>. The answer to the first question is more difficult.</p>
<p>Since many internal WordPress and BuddyPress functions may be tying into the same action or filter hooks, there is no easy way to know the firing sequence of action functions or filter functions. Add to that the fact that 3rd-party external plugins can also tie into these same action or filter hooks and the issue becomes even more murky. </p>
<p>As I had a serious issue with a custom do_action event in my BuddyPress Privacy Component not working as expected, I set out to solve the first question. Although my problem appeared to be with my custom do_action event, I soon discovered that it was caused by another hook to which I had tied in to.</p>
<p>The result of my investigation: a new tool for WordPress and BuddyPress developers called the WordPress Hook Sniffer. What does this plugin do? It helps plugin developers determine the sequence in which action and filter functions are fired, providing a window  into the inner workings of the WordPress Plugin API.</p>
<p>As with all of my other WordPress and BuddyPress plugins, this plugin is licensed under the <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License 3.0 (GPL)</a>.</p>
<p><strong>Download WordPress Hook Sniffer and Donate!</strong></p>
<p>You can download <a href="http://wordpress.org/extend/plugins/wordpress-hook-sniffer/">the WordPress Hook Sniffer via the WP Plugin Repository</a>. Even more excitingly, you can help me support this plugin, encourage me to create new ones, and enable me to keep living by selecting a sponsorship level below and clicking the &#8220;Pay Now&#8221; button. Thank you!</p>
<div class="paypal_button">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick"/>
<input type="hidden" name="hosted_button_id" value="VTHMENKR9ZWB4"/>
<table>
<tr>
<td>
<input type="hidden" name="on0" value="Sponsorship Levels"/>Sponsorship Levels</td>
</tr>
<tr>
<td>
<select name="os0">
							<option value="Supporter">Supporter $15.00</option><br />
							<option value="Donor">Donor $25.00</option><br />
							<option value="Sponsor">Sponsor $50.00</option><br />
							<option value="Benefactor">Benefactor $100.00</option><br />
							<option value="Patron">Patron $250.00</option><br />
							<option value="Open Source Angel">Open Source Angel $500.00</option><br />
							<option value="Holy Cow!">Holy Cow! $1,000.00</option><br />
						</select>
</td>
</tr>
</table>
<input type="hidden" name="currency_code" value="USD"/>
<input type="image" src="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"/>
						<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"/><br />
					</form>
<p><em>If you are a corporate user, consultant, plugin developer, or theme designer and profit from using my plugin, please consider donating at one of the upper levels. Thank you!</em></p>
</p></div>
<p><strong>Using the Plugin</strong></p>
<p><em>WARNING: This plugin is to be used only in a development sandbox and not in a production environment. It is intended solely for use by plugin developers to help determine the sequence in which action and filter functions are fired. Use at your own risk. As this plugin should not be installed on an active WordPress-based site (a production site), no support for broken sites will be given. You have been warned!</em></p>
<p>It is important that you carefully follow the installation instructions in the readme.txt file. There are several crucial steps you must take to make this plugin work.</p>
<ol>
<li>Once installed and activated, you will find a new menu option in the Settings menu<br />
<a href="http://jeffsayre.com/wp-content/uploads/2010/04/WP-Hook-Sniffer-Menu.png"><img src="http://jeffsayre.com/wp-content/uploads/2010/04/WP-Hook-Sniffer-Menu.png" alt="" title="WordPress Hook Sniffer Menu Selection" width="161" height="214" class="alignnone size-full wp-image-576" /></a></li>
<li>Clicking on that will bring up the WordPress Hook Sniffer Settings screen. The first thing to do is look in the upper left-hand corner of the screen. See that gratuitous &#8220;Please Support My Work&#8221; section? Go ahead and select a nice, juicy amount and then click the “Pay Now” button. Your donation (in any amount) is greatly appreciated! Okay, enough begging.<br />
<a href="http://jeffsayre.com/wp-content/uploads/2010/04/WP-Hook-Sniffer-Settings.png"><img src="http://jeffsayre.com/wp-content/uploads/2010/04/WP-Hook-Sniffer-Settings-300x283.png" alt="" title="WordPress Hook Sniffer Settings Screen" width="300" height="283" class="alignnone size-medium wp-image-577" /></a></li>
<li>Next, read the “Usage Notes” section at the end of this article for a few additional bits of important information</li>
<li>Finally, select “Enabled” in the Main Sniffer Settings section, choose what data you wish to view in the Output Options section, and then select where you would like the output to go in the Output Location section</li>
<li>It’s that easy!</li>
</ol>
<p><strong>Output Settings Options</strong></p>
<p>Whereas getting the WordPress Hook Sniffer to work is relatively straight forward, interpreting the output is a different story. What does all of that crap stuff mean?</p>
<p>Here is a brief overview of each of the output options and what information it can provide. However, to truly understand how to interpret the output and how best to use it in your development work, you will need to read my article, <a href="http://jeffsayre.com/2010/04/29/wordpress-hooks-barbs-and-snags/"><em>WordPress Hooks, Barbs, and Snags article</em></a>.</p>
<p>A. Added Functions</p>
<p>Selecting this option outputs the special WP Hook Sniffer array that holds, in the order in which they were encountered during code execution, all add_action calls and add_filter calls. The file and line number from which a given function was triggered is also provided.</p>
<p>B. Removed Functions</p>
<p>Selecting this option outputs the special WP Hook Sniffer array that holds, in the order in which they were encountered during code execution, all remove_action calls and remove_filter calls. The file and line number from which a given function was triggered is also provided.</p>
<p>C. Action and Filter Function Array </p>
<p>This is the grandaddy, grandmommy, grandchild, Grand Ole Opry of output data. It contains the output of the $wp_filter array, the array that holds all of the added action and filter functions and is used by the do_action and apply_filters functions call to determine function firing order&mdash;although there is a twist here. You must read my article <a href="http://jeffsayre.com/2010/04/29/wordpress-hooks-barbs-and-snags/"><em>WordPress Hooks, Barbs, and Snags article</em></a> to learn what it is.</p>
<p>D. Action Event Firing Order </p>
<p>This option contains the output of the $wp_actions array. A simple, one dimensional array that holds the sequential listing of all the do_action events that need to be processed. The events within this array used in conjunction with with corresponding data in the $wp_filter array determines the firing sequence of all action functions</p>
<p>E. Action Event Firing Sequence</p>
<p>Selecting this option outputs the special WP Hook Sniffer array that holds the sequential listing of do_action events with their corresponding fired action function(s). This listing shows you exactly the sequence in which each triggered action event fires its hooked action functions.</p>
<p>F. Filter Event Firing Sequence</p>
<p>Selecting this option outputs the special WP Hook Sniffer array that holds the sequential listing of apply_filters events with their corresponding fired filter function(s). This listing shows you exactly the sequence in which each triggered filter event fires its hooked filter functions.</p>
<p><strong>
<div id="notes">Usage Notes</div>
<p></strong></p>
<ol>
<li><em>Reporting Bugs</em>: If you find bugs or are having issues using this plugin, you can either post a comment in this article or <a href="http://buddypress.org/community/groups/wordpress-hook-sniffer/forum/">visit the support forum for this plugin</a>. Assistance in providing patches to this plugin is appreciated.</li>
<li><em>Increasing Precision</em>: If you want to see a more precise accounting of the execution time of a given function, you have to edit your php.ini file to increase the precision displayed for floating point numbers. Search your php.ini file for the entry:
<p><code>precision = 12</code></p>
<p>and change that to:</p>
<p><code>; precision = 12<br />
precision = 16</code></p>
<p>As you can see, I like to comment out any changes to my default php.ini settings just in case I decide to revert the changes later. This allows you to do so easily without having to remember or look up what the default setting is supposed to be.</p>
<p>Save your modified php.ini file and then restart your development server and you should now see the time-executed stamp displaying 6 significant figures instead of 2. This provides a sufficient level of detail.</li>
<li><em>Text Output Issues</em>: If you’re using SSL or are behind a proxy server, you may have issues when selecting to send the output to a text file. There are a few work arounds for this, but suffice it to say that since this plugin is to be used exclusively in a development sandbox environment, I will not be coding these into the plugin. If you must use this plugin with SSL or behind a proxy server, then simply select the screen output option. You can learn more about this in the <a href="http://www.php.net/manual/en/function.fopen.php">PHP manual for the fopen function</a>.</li>
<li><em>Screen Output</em>: When printing to screen, it may take a several seconds for output to finish. The output will start just below your theme’s footer.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2010/04/29/introducing-wordpress-hook-sniffer-a-developer-plugin/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>WordPress Hooks, Barbs, and Snags</title>
		<link>http://jeffsayre.com/2010/04/29/wordpress-hooks-barbs-and-snags/</link>
		<comments>http://jeffsayre.com/2010/04/29/wordpress-hooks-barbs-and-snags/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 20:25:07 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=587</guid>
		<description><![CDATA[This article is intended to help you learn how to interpret the output from the WordPress Hook Sniffer developer’s tool
This article is my exhaustive study of what I thought was a simple little function&#8212;the do_action function. It details how WordPress action hooks really work. It is a long, detailed article. If you want to understanding [...]]]></description>
			<content:encoded><![CDATA[<p><em>This article is intended to help you learn how to interpret the output from the <a href="http://jeffsayre.com/2010/04/29/introducing-wordpress-hook-sniffer-a-developer-plugin/">WordPress Hook Sniffer developer’s tool</a></em></p>
<p>This article is my exhaustive study of what I thought was a simple little function&mdash;the do_action function. It details how WordPress action hooks really work.<span id="more-587"></span> It is a long, detailed article. If you want to understanding the inner works of the do_action function, then it will be worth your time. Although this article only briefly mentions the apply_filters function, the lessons learned about the do_action function apply equal as well as the coding of these two functions is nearly identical.</p>
<p>This is not a beginners guide to <a href="http://codex.wordpress.org/Plugin_API">WordPress action and filter hooks</a>. To benefit from this article, you need to understand what hooks are, why you use them, and how to use them.</p>
<p><strong>Hooks, Barbs, and Snags</strong></p>
<p>Before we start, I need to define two terms. You may be wondering about the title of this article, “WordPress Hooks, Barbs, and Snags.” You should already know the definition of a WordPress hook. But what are barbs and snags?</p>
<p>These are two terms I created to classify the following:</p>
<p><em>Barbs</em>: salient insights about the functioning of WordPress hooks that stick out and grab your attention. Understanding these barbs help you avoid snags. In this sense, a barb is a good thing.</p>
<p><em>Snags</em>: WordPress hooks that do not execute as expected, not because the do_action or apply_filters functions are misbehaving, but rather because you do not understand how these functions actually work.</p>
<p><strong>The Hook Loop or Where the Issue Gets Complex</strong></p>
<p>When it comes to code, loops can be tricky constructs to properly implement. What seems like a simple, innocuous operation may actually be more complex than meets the eye. This is the case with the do loops in the do_action and apply_filters functions.</p>
<p>There are two key arrays that WordPress uses to determine the firing sequence of actions and filters&mdash; the $wp_actions and $wp_filter arrays. These arrays get built throughout the execution of each page load and are not fully populated until page load is complete and PHP stops execution, waiting for its next command.</p>
<p><em>The $wp_filter Array</em></p>
<p>The $wp_filter array is where all added action functions and filter functions are stored for future reference and processing by both the apply_filters function and the do_action function. This array is a very-large, multidimensional array nested to four levels. See the snapshot of the partial contents of this massive array.<a href="http://jeffsayre.com/wp-content/uploads/2010/04/WP-Hook-Sniffer-filter-array.png"><img src="http://jeffsayre.com/wp-content/uploads/2010/04/WP-Hook-Sniffer-filter-array-300x211.png" alt="" title="WordPress Hook Sniffer $wp_filter Array" width="300" height="211" class="alignright size-medium wp-image-603" /></a></p>
<p>Here is a snapshot of what is generated in the $wp_filter array just by navigating to the homepage in my particular setup. Your results will vary depending on which plugins you have activated, which theme you’re using, whether you’re running WordPress in single-site or multi-site mode, whether you’re running BuddyPress, whether a user is logged into your site, and of course which versions of WP / BP you currently have installed.</p>
<p>As you can see, there are a lot of action functions and filter functions listed, each of which result in the grabbing and storing of added actions and filters. Not all of these are necessarily triggered. It is up to the apply_filters and do_action functions to determine which of the referenced functions will be fired.</p>
<p><em>The $wp_action Array</em></p>
<p>The $wp_actions array holds all of the current actions invoked by do_action events in the files that are processed when a given page is loaded. Like the $wp_filter array, the contents of this array obviously depend on the page to which a user navigates.</p>
<p>Here is a snapshot of what is generated in the $wp_actions array just by navigating to the homepage in my particular setup.<a href="http://jeffsayre.com/wp-content/uploads/2010/04/WP-Hook-Sniffer-action-array.png"><img src="http://jeffsayre.com/wp-content/uploads/2010/04/WP-Hook-Sniffer-action-array-300x88.png" alt="" title="WordPress Hook Sniffer $wp_action Array" width="300" height="88" class="alignright size-medium wp-image-604" /></a></p>
<p>But read on as knowing about these two arrays is only one aspect to fully understanding the underlying processes, in figuring out the entire puzzle.</p>
<p><strong>Populating the Arrays, Firing the Hooks</strong></p>
<p>Here’s another piece to this complex puzzle. We know that the array $wp_filter holds an array listing all of the currently active action functions and filter functions. But how is this array built?</p>
<p>It’s simple. All action and filter functions that are not enclosed within a function, a loop, or any type of conditional clause currently not triggered, are added sequentially to this array as a given file is executed after it’s loaded (via either an include, include_only, require, or require_only function call). Therefore, as soon as a file is loaded, execution passes to that file and all directly executable add_action, add_filter, remove_action, and remove_filter function calls are processed.</p>
<p>This means that PHP is furiously processing function calls from these four functions, resulting in data being added or removed from the $wp_filter array. When an add_action call is triggered, the parameters are sent to the add_action function in the WP plugin API. When an add_filter call is triggered, the parameters are sent to the add_filter function&mdash;and so on.</p>
<p>However, one additional function is called when an add_action call is processed. As soon as the add_action function gets called, it immediately passes on the responsibility to the add_filter function. This means that WordPress looks at action functions and filter functions as the same. This is another key insight and is why both action functions and filter functions are referenced within the same array&mdash; the $wp_filter array.</p>
<p>Once the add_filter function gets control, it adds the calling function to the growing list of  actions and filters that can be triggered by a given do_action or apply_filters event. This process quickly results in the $wp_filter array growing into a massive, multidimensional array. Of course, action and filter functions can get removed from the array via calls from the remove_action and remove_filter functions.</p>
<p>The reality of code execution is of course more complex. The $wp_filter array is still being populated with action and filter functions when the first do_action events are triggered. This means that it is possible to have a situation where an action or filter that is hooked to a given do_action or apply_filters event will not get triggered if the file in which the hooked function is located has not been loaded before the hook is triggered.</p>
<p>This last point is exactly what was happening in BuddyPress when the bp_init action hook fired. This is the issue that was puzzling me and resulted in this exhaustive study and creation of my new WordPress Hook Sniffer plugin. You can <a href="http://trac.buddypress.org/ticket/2325">read this BuddyPress Trac ticket</a> to learn more.</p>
<p><strong>A Detailed Analysis to Shed Some Light</strong></p>
<p>Here is a breakdown and partial analysis of the $wp_actions array, the array that holds all of the current actions invoked by do_action events in the files that are processed when the homepage is loaded. We will use this array along with the $wp_filter array to figure out what is really going on.</p>
<p>The contents of this array obviously depends on the page to which a user navigates. This is just what happens when a non-logged-in user visits the homepage of the default BuddyPress theme in my WPMU setup. The only other plugin that is activated is my BuddyPress Privacy Component. For these tests, I am running WPMU 2.9.2 and BuddyPress 1.2.3.</p>
<p>NOTE: To fully understand what is going on, you need to make sure that you are looking at the completed arrays and not the partial arrays grabbed partway through page-load.</p>
<p>Let’s look at the order in which do_action events will be triggered. We will analyze what is happening in the first four elements of the $wp_actions array (index value of “0” through “3”). How is each action triggered and what are the results? This will start off as a detailed look into each hook’s actions, but will provide fewer details with each additional event as the basic processes become evident.</p>
<p><em>The First Four Triggered Action Events</em></p>
<p><code>[0] => muplugins_loaded</p>
<p>[1] => bp_core_loaded</p>
<p>[2] => plugins_loaded</p>
<p>[3] => bp_setup_root_components<br />
</code></p>
<p><em>[0] => muplugins_loaded</em></p>
<p>When a user navigates to the homepage of a default BuddyPress install running on top of WPMU, the first action hook that is invoked is muplugins_loaded. This is directly triggered on line 547 in wp-settings.php. Any added actions that are tied to this event will next be triggered.</p>
<p>Looking at the $wp_filter array, you will see that there are no actions tied to this hook. This means that there is no subarray element with a key name of muplugins_loaded. In other words, you will not find any reference to that action event within the $wp_filter array. So, this action event does not result in any action functions getting fired.</p>
<p><em>NOTE: A triggered hook may or may not have actions tied to it. If no actions are tied to the hook, the do_action routine passes by that hook, checking the next invoked hook for added action functions to fire.</em></p>
<p>Before the next action event is triggered, something important happens.</p>
<p>Execution of the wp-settings.php file continues. On line 703 of wp-settings.php, all the active plugins are loaded&mdash;both blog specific plugins and site-wide plugins.</p>
<p>If you look at that line, $current_plugins can be modified by any added filters. That is what happens. On line 2348 of wpmu-functions.php, an add_filter call triggers function mu_filter_plugins_list. This filter modifies the contents of $current_plugins, adding any MU plugins that have been activated site wide. Processing is returned wp-settings.php, resulting in the main file of each activated plugin getting loaded.</p>
<p>There is an interesting item to notice within function mu_filter_plugins_list. On line 2345 of that function, the two arrays $active_plugins and $active_sitewide_plugins are merged and the resultant new array is sorted.</p>
<p>What does this mean? It means that when it comes to the issue of action and filter sequence firing, it does not matter which plugins you activate first. The order in which plugins are added to each of the serialized objects active_plugins and active_sitewide_plugins is immaterial. The sort function will alphabetically reorder the contents of the merged array.</p>
<p><em>NOTE: Each WPMU blog has it’s own listing of active plugins that are stored in a serialized object in the blog’s wp_x_options table. Look for the entry “active_plugins” within the option_name field of that table. The corresponding active plugins are in the option_value field of that record. All plugins that are to be activated site wide within WPMU are stored in a serialized object in the wp_sitemeta table. Look for the entry “active_sitewide_plugins” within the meta_key field of that table and the corresponding plugins that are to be activated site wide in the meta_value field of that record.</em></p>
<p>So, in our particular case with two site-wide plugins installed and activated (buddypress and bp-authz), the order in which they were activated is immaterial in determining which file is included (loaded) first by the conditional loop code starting on line 704 of wp-settings.php.</p>
<p>If you look in the wp_sitemeta table for the meta_key “active_sitewide_plugins”, you will see this:</p>
<p><code>a:2:{s:24:"buddypress/bp-loader.php";i:1270239897;s:28:"bp-authz/bp-authz-loader.php";i:1270396554;}</code></p>
<p>BuddyPress appears first because I activated it first&mdash;as is necessary. But, when the references to these two main plugin files are processed through the mu_filter_plugins_list function, they get sorted. This results in bp-authz-loader.php getting loaded before bp-loader.php.</p>
<p>This could be a big issue as all BP-dependent plugins rely on BuddyPress to be installed, activated, and loaded. Any BP-dependent plugin that comes alphabetically before “buddypress” will have their main file loaded before BuddyPress’ main file.</p>
<p><strong>Barb 1:</strong> As a BuddyPress plugin developer, this is the first major insight, the first important barb that can prevent your code from hitting a snag with regards to action and filter execution.</p>
<p>Fortunately, there is an easy way to prevent this barb from snagging you and those that use your plugin. Make sure that <a href="http://codex.buddypress.org/how-to-guides/checking-buddypress-is-active/">BuddyPress is active before your plugin loads</a> its core files.</p>
<p>Since that is exactly what I’ve done with my BuddyPress Privacy Component, there are no issues and execution quickly passes back to the loop and the next file in the $current_plugins array is loaded. This is the main BuddyPress file, bp-loader.php.</p>
<p><em>[1] => bp_core_loaded</em></p>
<p>Execution of bp-loader.php begins. On line 22 of bp-loader.php, the first custom BuddyPress action event is invoked:</p>
<p><code>do_action( 'bp_core_loaded' );</code></p>
<p>It is directly invoked, directly triggered. It is not enclosed within a function, a loop, or any type of conditional clause. This invoked event is what appears in the second element of the $wp_actions array.</p>
<p>Since there are currently no tied-in actions to this particular action event (as can be easily determined by looking at the $wp_filter array), the invocation of this action does not result in further actions being triggered.</p>
<p>The execution of bp-loader.php continues. Right after line 22, a series of conditional clauses include (load) all enabled BuddyPress modules&mdash;activity, blogs, forums, friends, groups, messages, xprofile.</p>
<p>As each of these files are included (loaded), any directly invoked (directly triggered) action events within each of them will also be invoked. Since there are no additional, directly invokable do_action calls within any of these files, execution is passed back to wp-settings.php.</p>
<p><em>[2] =>plugins_loaded</em></p>
<p>On line 735 in wp-settings.php, the do_action event for plugins_loaded is directly triggered.</p>
<p><code>do_action('plugins_loaded');</code></p>
<p>This is when things really start to accelerate. Up until this time, only a few lines of php code within BuddyPress have actually been run.</p>
<p>With the invocation of the plugins_loaded event, we now have our first action hook that has actions tied to it. Understanding what happens next leads us to the second major insight, the second important barb.</p>
<p>To understand what happens next, we need to inspect the elements within the plugins_loaded array of the $wp_filter array. I have extracted just that subarray element below:</p>
<p><code>plugins_loaded:<br />
Array<br />
(<br />
    [0] => Array<br />
        (</p>
<p>            [wp_maybe_load_widgets] => Array<br />
                (<br />
                    [function] => wp_maybe_load_widgets<br />
                    [accepted_args] => 1<br />
                )</p>
<p>            [wp_maybe_load_embeds] => Array<br />
                (<br />
                    [function] => wp_maybe_load_embeds<br />
                    [accepted_args] => 1<br />
                )</p>
<p>        )</p>
<p>    [2] => Array<br />
        (<br />
            [bp_core_setup_root_uris] => Array<br />
                (<br />
                    [function] => bp_core_setup_root_uris<br />
                    [accepted_args] => 1<br />
                )</p>
<p>            [bp_setup_root_components] => Array<br />
                (<br />
                    [function] => bp_setup_root_components<br />
                    [accepted_args] => 1<br />
                )</p>
<p>        )</p>
<p>    [3] => Array<br />
        (<br />
            [bp_core_set_uri_globals] => Array<br />
                (<br />
                    [function] => bp_core_set_uri_globals<br />
                    [accepted_args] => 1<br />
                )</p>
<p>        )</p>
<p>    [5] => Array<br />
        (<br />
            [bp_core_load_buddypress_textdomain] => Array<br />
                (<br />
                    [function] => bp_core_load_buddypress_textdomain<br />
                    [accepted_args] => 1<br />
                )</p>
<p>            [bp_setup_globals] => Array<br />
                (<br />
                    [function] => bp_setup_globals<br />
                    [accepted_args] => 1<br />
                )</p>
<p>        )</p>
<p>    [10] => Array<br />
        (<br />
            [bp_setup_nav] => Array<br />
                (<br />
                    [function] => bp_setup_nav<br />
                    [accepted_args] => 1<br />
                )</p>
<p>            [bp_setup_widgets] => Array<br />
                (<br />
                    [function] => bp_setup_widgets<br />
                    [accepted_args] => 1<br />
                )</p>
<p>            [bp_register_activity_actions] => Array<br />
                (<br />
                    [function] => bp_register_activity_actions<br />
                    [accepted_args] => 1<br />
                )</p>
<p>            [bp_loaded] => Array<br />
                (<br />
                    [function] => bp_loaded<br />
                    [accepted_args] => 1<br />
                )</p>
<p>        )</p>
<p>)<br />
</code></p>
<p>This array element is itself a multidimensional nested array. In fact, the first element (with an index value of “0”) has two action functions referenced.</p>
<p><em>An important point: each subarray of the $wp_filter array is a numeric array. Read that again. This means that the second level of the nested $wp_filter array contains numeric arrays.</em></p>
<p>You might be wondering how the index values for these numeric arrays are set. This is simple.</p>
<p>The key, the index value, of each 2nd-level array element is determined by the priority assigned to the event in the add_action and add_filter call. Thus, the priority set for a given action or filter function becomes the key of each element in a given hook’s multidimensional array. If a priority is not set for a given add_action or add_filter call, it is automatically defaulted to “10”. This means that any and all added actions or filters that do not specify a priority are automatically assigned to the proper action array element with an index value of “10”.</p>
<p>As an example, if the priority for a given added action is set to “16”, then that particular action function will be located in the array element for that action with an index value of “16”. Multiple action functions can be added under the same index value, creating an array of action functions associated with the same numeric key element. The order in which they appear is determined by the order in which they were executed.</p>
<p><strong>Barb 2:</strong> This is the second major insight, the second important barb that can prevent your code from hitting a snag with regards to action and filter execution.</p>
<p>Now, the next piece of the puzzle is this. The order in which action functions are added to a given action array element is determined by the order in which they are encountered, the order in which their corresponding add_action or add_filter calls were fired. As we will see below, this is what makes determining the firing order of added actions and filters difficult.</p>
<p><strong>Barb 3:</strong> This is the third major insight, the third important barb that can prevent your code from hitting a snag with regards to action and filter execution.</p>
<p><strong>Barb 4:</strong> The higher the index key, the later the action or filter functions within that index-key grouping will get fired. Therefore, using the example above, if we set a priority of “16” for a given action function, it would get fired only after all the other action functions with a lower priority have been fired.</p>
<p>We have now reached the final piece of the puzzle!</p>
<p>Near the beginning of this article, the complexity of the do loops within the do_action and apply_filters functions was briefly mentioned. And it is within those loops that this story really finally gets resolved.</p>
<p>If you look at lines 166 (within the apply_filters function) and line 339 (within the do_action function) of the wp-includes/plugin.php file, you will find the code lines where the actual hooked functions are fired. Do you see the call_user_func_array() function call? That is a core PHP function. It is what will actually fire the next action or filter function in line, as determined by the data in the $wp_filter array.</p>
<p>The action of the call_user_func_array() function nested within the do loop is not as simple as it may seem. Why is this? Well, currently we are discussing the plugins_loaded action event and all of the tied into functions that get fired.</p>
<p>Look at the next action event to get triggered within the $wp_actions array. It is the action event bp_setup_root_components. But wait. Why is there another action event being triggered? We have not yet finished iterating through all of the added action functions to the plugins_loaded action event.</p>
<p>Once again, the reason is simple. Triggered action functions can themselves have action events. Inspecting the plugins_loaded subarray in the $wp_filter array, we see that the bp_setup_root_components action function is invoked by the plugins_loaded event via an added action call on line 2021 in bp-core.php. Within that action function there is an action event called bp_setup_root_components.</p>
<p>So, the sequential processing of all the added action functions with the plugins_loaded subarray of the $wp_filter function has come across a new action event to trigger. It now gets priority and further processing of the plugins_loaded subarray is put on hold until the bp_setup_root_components action event is finished processing its added action functions.</p>
<p><strong>Barb 5:</strong> This can quickly result in a nested grouping of action events with the firing of their corresponding action functions. This is the final piece to the puzzle and the last and final barb that can prevent your code from hitting a snag with regards to action and filter execution.</p>
<p>As you are reading this, the juxtaposed actions of the do loop with the call_user_func_array() function more than likely seem obvious. It may seem this is not unexpected behavior or difficult to understand.</p>
<p>Whereas that is the case when all of the data is clearly laid out before you, the complex actions of these intertwined functions are not apparent when you are coding a plugin. There is no practical way to peek inside this action-event, action-function feedback loop.</p>
<p>This is were the true value of the WordPress Hook Sniffer plugin is revealed.</p>
<p><em>[3] => bp_setup_root_components</em> </p>
<p>Here’s where we understand the last piece to this confusing puzzle.</p>
<p>Inspecting the $wp_filter array for this action event you will see that there are four action functions that are hooked to this action event: bp_activity_setup_root_component, bp_blogs_setup_root_component, bp_forums_setup_root_component, groups_setup_root_component.</p>
<p>These action functions are fired in that sequence. Since they do not have any action events which they trigger, control is passed back to the plugins_loaded event and the next action function in the plugins_loaded subarray is fired.</p>
<p><strong>Applying the Lessons</strong></p>
<p>When interpreting the results of the WoodPress Hook Sniffer plugin, you need to look at the output of the $wp_actions array and then search out the hooked actions to each of those items (if any) in the $wp_filter array. This will give you a general idea of what gets fired when. You can then experiment and see how changes to action priorities affect the firing sequence of a given added action.</p>
<p>You need to carefully think about the execution timing of each action or filter you add, looking at the corresponding triggering event for the hook or hooks to which it’s tied. Remember, you can hook a function to more than one hook which means that it is possible, if you are not careful, that some of them may fire whereas others may not. It’s all a matter of whether or not the reference to the action or filter function was successfully added to the $wp_filter array before the associated hook is triggered.</p>
<p>Looking at the Action Event Firing Sequence and the Filter Event Firing Sequence will help you precisely tune your added hooks and filters. Remember that execution my temporarily pass to another action or filter event. The output of these two WordPress Hook Sniffer arrays will show you when that happens.</p>
<p>Finally, there is no requirement that you place your add_action and add_filter calls right below the functions in which they are associated. Whereas doing so does facilitate code understanding, you could instead place them all at the top of the file (or the bottom) in which the associated functions are located. Remember, each add_action and add_filter function call that is directly executable is processed as soon as a file is loaded. So it does not matter where within the file those calls are located&mdash;with the possible exception of fine tuning the execution order of a particular function.</p>
<p><strong>Final Notes on the $wp_filter and $wp_actions Arrays</strong></p>
<p>The arrays $wp_filter and $wp_actions are repopulated from scratch each time a page is loaded. They do not contain a running accounting of all action and filter functions and all action and filter hooks. The contents of both of these arrays may vary depending on which page you navigate. The contents will depend on the files that are loaded (via include, include_only, require, require_only) when a given page you are on is displayed.</p>
<p>The reality is that, when visiting a given page, there will always be more hooks, action, and filter functions buried deep inside non-loaded files or within function blocks that are not directly hooked. The first is a result of the add_action, remove_action, add_filter, or remove_filter calls not getting fired until that file is loaded. At file load, any directly-executable do_action or apply_filters will be triggered as well. The second is the result of functions that have hooks that only get triggered if the file is loaded and the function is fired.</p>
<p>Although the WP Hook Sniffer will locate all action and filter hooks, and action and filter functions no mater the source&ndash;core files, custom themes, or 3rd-party plugins&ndash;what is captured depends on one simple rule&mdash;that the hooks and function calls are actually fired during page load.</p>
<p>As an example, WP Hook Sniffer cannot locate add_action calls that get fired on a different page than the currently loaded page. It can also not locate add_action calls that are buried inside a function that does not get triggered unless a special criteria is met. To sniff out those added actions, you have to navigate to that page so that those calls get fired or cause the special criteria to be met so that the function containing the buried action call is triggered.</p>
<p>Remember, the way that the WordPress Plugin API processes added and removed actions and filters is by storing (or deleting) a reference to them in the $wp_filter array. But that only happens for hooked functions that are actually encountered during page load. The $wp_filter array is wiped clean with each page load and rebuilt from scratch. The same holds true for the $wp_actions array and the action hooks it tracks.</p>
<p>Therefore, if you have action or filter functions that are supposed to be fired on a given page but you are not seeing that they’ve been fired, then that indicates that they are hooked to an action or filter event that finishes firing before the file in which the target action or filter functions are located even gets loaded. This is exactly what happened to me and caused me to write WP Hook Sniffer.</p>
<p><strong>Summary of Barbs: the Key Insights</strong></p>
<p>1. When it comes to the issue of action function and filter function sequence firing, it does not matter which plugins you activate first.</p>
<p>2. The key, the index value, of each 2nd-level array element within the $wp_filter array is determined by the priority assigned to the event in the add_action and add_filter call.</p>
<p>3. The order in which action functions and filter functions are added to a given action or filter subarray element in the $wp_filter array is determined by the order in which they are encountered during code execution.</p>
<p>4. The higher the index key, the later the action or filter functions within that index-key grouping will get fired.</p>
<p>5. Action hooks (events) &#8211;> trigger action functions &#8211;> which can have additional action hooks &#8211;> which can trigger additional action functions &#8211;> until control is passed back to the the originally-triggering action hook.</p>
<p><a href="http://jeffsayre.com/wp-content/uploads/2010/04/WP-Hook-Sniffer-action-firing.png"><img src="http://jeffsayre.com/wp-content/uploads/2010/04/WP-Hook-Sniffer-action-firing-300x277.png" alt="" title="WordPress Hook Sniffer Action Event Pausing" width="300" height="277" class="alignnone size-medium wp-image-612" /></a></p>
<p>This is the action-event, action-function feedback loop caused by the juxtaposed actions of the do loop with the call_user_func_array() function.</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2010/04/29/wordpress-hooks-barbs-and-snags/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Rash Decisions Are Not Good Decisions</title>
		<link>http://jeffsayre.com/2010/01/22/rash-decisions-are-not-good-decisions/</link>
		<comments>http://jeffsayre.com/2010/01/22/rash-decisions-are-not-good-decisions/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 18:31:18 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[Entrepreneurship & Leadership]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[founders]]></category>
		<category><![CDATA[leadership]]></category>
		<category><![CDATA[startups]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=269</guid>
		<description><![CDATA[I recently posted an article entitled, Looking for Two Startup Partners 35-plus years Old.
It is interesting how some people quickly jumped to conclusions and made sweeping assumptions based on a single blog article, or worse yet, blog title. Although the majority of people who have taken the time to comment or tweet about this post [...]]]></description>
			<content:encoded><![CDATA[<p>I recently posted an article entitled, <a href="http://jeffsayre.com/2010/01/14/looking-for-two-startup-partners-35-plus-years-old/"><em>Looking for Two Startup Partners 35-plus years Old</em></a>.</p>
<p>It is interesting how some people quickly jumped to conclusions and made sweeping assumptions based on a single blog article, or worse yet, blog title. Although the majority of people who have taken the time to comment or tweet about this post have been positive about my efforts, a small minority (across the age spectrum), have been negative, even seemingly offended.<span id="more-269"></span></p>
<p>I’ve concluded that this latter group must not have read the post in its entirety. In fact, it is very possible that they got emotionally thrown-off guard by the title and didn’t bother reading the post at all. The other likely scenario is that they only read the first half of the post and found it disagreeable so they did not finish reading the rest.</p>
<p>Either way, it is a shame when people make accusations&ndash;are prejudiced&ndash;based on a few words. It is an unfortunate fact that some people will judged you on little more than a few words or sentences. They will not take the time to learn more about who you are before rendering an opinion.</p>
<p>Now I have thick skin. When you’ve been through a life-threatening illness, not sure whether you would live another year, you learn what is truly important and are able to filter out most impacts of personal attacks, illogical drivel, and emotionally-charged, incorrect assertions.</p>
<p><strong>Marketing Message</strong></p>
<p>Although the title of my post was somewhat sensational, it did speak directly to the issue of ageism in the VC-funding of web startups. This is a real issue.</p>
<p>But, my article only used that issue to build a bridge to the larger point&mdash;that what matters in startup founders in not age, but their experience, skills, and maturity. In fact, near the end of my piece I state this:</p>
<blockquote><p>Now, I am not an ageist by any stretch of the imagination. So, if you’re an exceptional under-35 year old who is interested in this opportunity, send an email convincing me that you’re the one I should pick. You will still be required to meet all the requirements except age.</p></blockquote>
<p>So, when it comes to my search for exceptionally-talented startup partners, this post is really not about age. I’ll gladly consider anyone, regardless of their age&mdash;although when choosing a founder, the experience-bar must be set higher.</p>
<p><strong>Rash Decisions Are Not Good Decisions</strong></p>
<p>The fact that someone tweeted today calling me “utterly pompous” for my statements in that article, does not surprise me nor upset me. Whenever someone sends a negative tweet about something I’ve said or written, I always engage them in respectful debate. Some will reply, a few simply ignore my tweets. My purpose is to better communicate my original message and learn what in particular set them off.</p>
<p>When I received that tweet this morning, I sent off three, quick tweets encouraging him to read the whole article and explaining that the major point of that piece was that I’m looking for two experienced people with the skills to be founders. I told him that it was really not about age at all.</p>
<p>He eventually sent another tweet back but has not yet recanted his remark. That’s fine. He’s entitled to his opinion. I have big enough shoulders. If I&#8217;m ever in need of the services his firm offers, I’ll fully assess the firm’s strengths and weakness. I will not jump to conclusions based on the little interaction that I’ve had with one of its partners.</p>
<p>This experience made me realize another essential quality of a great leader&mdash;to be slow to judgement. If you are too quick to judge, then you are likely a person that misses key information that could make a difference to your business’ success. You may be prone to letting emotions influence your judgement too much. Instead of making a rash assumption about a person, project, or opportunity, do your homework. Properly assess the situation so you know as much of the truth as possible before making your decision.</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2010/01/22/rash-decisions-are-not-good-decisions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BuddyPress Privacy: Moving Toward a Privacy API</title>
		<link>http://jeffsayre.com/2010/01/20/buddypress-privacy-moving-toward-a-privacy-api/</link>
		<comments>http://jeffsayre.com/2010/01/20/buddypress-privacy-moving-toward-a-privacy-api/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 00:23:19 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[Social Media & Semantic Web]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[WordPress Plugins]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=256</guid>
		<description><![CDATA[BuddyPress development is moving toward a modular, team-focused approach. In my mind, this is the biggest news that came out of the weekly BuddyPress developers’ chat (you can read a succinct summary of the chat that DJPaul wrote up or you can read the entire chat-stream).
During the chat, Andy Peatling (lead BP developer and Automattic [...]]]></description>
			<content:encoded><![CDATA[<p>BuddyPress development is moving toward a modular, team-focused approach. In my mind, this is the biggest news that came out of the weekly BuddyPress developers’ chat<span id="more-256"></span> (you can read a <a href="http://bpdevel.wordpress.com/2010/01/20/summary-of-jan-20th-dev-chat/">succinct summary of the chat</a> that <a href="http://twitter.com/pgibbs">DJPaul</a> wrote up or you can <a href="https://irclogs.wordpress.org/chanlog.php?channel=buddypress-dev&#038;day=2010-01-20&#038;sort=asc">read the entire chat-stream</a>).</p>
<p>During the chat, <a href="http://twitter.com/apeatling">Andy Peatling</a> (lead BP developer and Automattic employee), presented an idea about breaking up development work into component teams:</p>
<blockquote><p>I&#8217;d like to start breaking BP down into chunks, and find people that are really interested in specific features&#8230;so for example if you really love the activity stream functionality you could focus specifically on that, and stick to patching just this area&#8230;so the long term goal is to get teams on components and have that transition into core commit teams.</p></blockquote>
<p>This has merit. As the complexity of the BuddyPress codebase expands, it will be increasingly difficult for a one- or two-person team to do all the core lifting. BuddyPress is a complex suite of plugins. It is a social-network-creating ecosystem full of hundreds of functions and classes. Breaking the workload into project teams is a sensible approach.</p>
<p><strong>More Hands to Watch</strong></p>
<p>But, this notion of modularizing BuddyPress core development made me realize that a single guy&ndash;that would be me&ndash;cannot effectively continue to maintain and update the BuddyPress Privacy Component. It is impractical.</p>
<p>As you already may know from my <a href="http://jeffsayre.com/2010/01/02/do-you-support-buddypress-privacy/">very successful fundraising drive</a> for my <a href="http://jeffsayre.com/2009/12/05/buddypress-privacy-component-released/">BuddyPress Privacy Component</a>, keeping the BP Privacy plugin up to snuff with each new release of BP is quite challenging. In effect, I have to be an expert on all the BuddyPress components.</p>
<p>If there will be project teams managing the future development of the BuddyPress suite of components, that means two things: 1) there will be too much information created by too many hands on which I need to stay caught up; 2.) there’s an opportunity to streamline privacy filtering.</p>
<p><strong>Enter the BuddyPress Privacy API</strong></p>
<p>Privacy should be a core feature of any social network. BuddyPress is no exception to this rule. So, I’m now thinking that the best approach to privacy in BuddyPress is via a Privacy Layer that provides a basic Privacy API which any and all components can access.</p>
<p>I’m now investigating how practical and possible it will be to create a Privacy Layer using my current privacy codebase. If it is something that can successfully be created without a significant amount of additional work, I will switch my efforts toward creating the BP Privacy Layer.</p>
<p>This means, that going forward, it will be up to each BuddyPress component development team to utilize the Privacy Layer (if they choose to), to tie their component into the Privacy API, and provide privacy filtering. That way, providing privacy will become a team effort and not just one guy playing catch up, running behind Andy, jjj, and all the component-team members who are furiously evolving the BuddyPress codebase.</p>
<p>Do you think a BuddyPress Privacy Layer is the best way to ensure that privacy becomes a core element of each component? Do you think a BuddyPress Privacy API is a desirable feature?</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2010/01/20/buddypress-privacy-moving-toward-a-privacy-api/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Looking for Two Startup Partners 35-plus years Old</title>
		<link>http://jeffsayre.com/2010/01/14/looking-for-two-startup-partners-35-plus-years-old/</link>
		<comments>http://jeffsayre.com/2010/01/14/looking-for-two-startup-partners-35-plus-years-old/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 21:17:25 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[Entrepreneurship & Leadership]]></category>
		<category><![CDATA[Publishing 2.0]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[founders]]></category>
		<category><![CDATA[leadership]]></category>
		<category><![CDATA[startups]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=221</guid>
		<description><![CDATA[At first, that might seem like an odd announcement. But when Dave Winer made a recent post about ageism, I decided that I would try a little reverse ageism in finding startup partners.
Since I am not hiring employees, I am not breaking anti-discrimination laws. I am not making job offers. I am searching for business [...]]]></description>
			<content:encoded><![CDATA[<p>At first, that might seem like an odd announcement. But when <a href="http://twitter.com/davewiner">Dave Winer</a> made a recent <a href="http://www.scripting.com/stories/2010/01/11/ageismIsBecomingAnIssueFor.html">post about ageism</a>, I decided that I would try a little reverse ageism in finding startup partners.</p>
<p>Since I am not hiring employees, I am not breaking anti-discrimination laws. I am not making job offers. I am searching for business partners with whom to start a business.<span id="more-221"></span> So, I can use whatever criteria I want in selecting my startup partners.</p>
<p>In the days that followed that post, Dave brought up more issues of ageism&mdash;in particular venture funding in the realm of tech startups. On Wednesday, January 13, 2009, Dave tweeted this quote, taken from an article about Douglas Leone, a partner at Sequoia Capital:</p>
<blockquote><p>&#8220;Sequoia focuses on younger entrepreneurs because people over 30 aren&#8217;t innovative.&#8221; <a href="http://r2.ly/red7">http://r2.ly/red7</a></p></blockquote>
<p>Wow! I guess Pablo Picasso, Richard Feynman, Steve Jobs, James Cameron, and hundreds of thousand of other post-30 innovators, never realized that their creativity and innovative spirits had dried up once they hit 30. Shame on them. They all should have been sent to the <a href="http://en.wikipedia.org/wiki/Soylent_Green">Soylent Corporation’s processing plant</a> once they hit 30-years old.</p>
<p>If you read the article linked to in the tweet, you’ll get the full picture of what was being said. But the point is, that when it comes to web startups, especially those in the social media space, ageism is an issue.</p>
<p>( N.B. If you have made it this far in the article and your blood is beginning to boil, read this newer post for a <a href="http://jeffsayre.com/2010/01/22/rash-decisions-are-not-good-decisions/">sneak peek at the message behind the headline</a>.)</p>
<p><strong>Fifty is the New Forty; Thirty is the New Twenty</strong></p>
<p>So, why am I looking for founding partners 35-plus years of age?</p>
<p>In my two previous jobs, I managed teams of people; I managed managers who managed teams of people. It was a rare exception when I found someone under the age of 30 who was sufficiently focused, task-oriented, dependable, experienced, and knew what they wanted. When I did find someone like that, I knew that I had a <a href="http://jeffsayre.com/2010/01/19/are-you-a-successful-project-manager-or-a-reluctant-leader/">potential project manager</a> and someone who might be able to be mentored to become a possible future executive.</p>
<p>Now that does not imply that most people over the age of 30 have what it takes to manage projects, to lead a team of people, to start a company. Most of them do not. It is simply that my empirical evidence convinced me, when it came to a professional life, most people under the age of 30 still had some growing up to do&mdash;and some of those had a long ways to go.</p>
<p>All under-30, professional-level employees have fewer than 10 years of work experience. Most are still very green and have much to learn about work ethos, teamwork, project management, and leadership. The other big issue is that many under-30 employees have yet to perfect an effective, proactive communication style. Finally, experience comes with discipline, hard work, learning from mistakes, and age. And experience is more valuable than raw, young talent in my book.</p>
<p>Don’t get me wrong. Young employees are important to a healthy, vibrant business. But a company full of only young employees is a company that is most likely inefficient and prone at making mistakes that a business with a diverse, well-seasoned workforce would never make. This applies to old firms as well as new startups.</p>
<p><strong>The Company, The Opportunity</strong></p>
<p>My startup is in the Publishing 2.0 space. That is all I will say for now.</p>
<p>I have an detailed concept paper describing the underlying vision and functionality. It is not a business plan. At this stage in a startup’s life, business plans are not necessary. If you don’t understand that statement, or understand why, then this opportunity is not for you.</p>
<p>You must know the differences between working at a startup and working for a small business. Whereas all startups are (usually) considered small businesses, very few small businesses are startups. If you do not clearly understand the differences, then this opportunity is not for you.</p>
<p>Each founder is required to provide their own hardware and software. As we will be using a number of Open Source tools for designing, coding, implementing, managing, and running the platform, the need for proprietary software should be limited.</p>
<p>The earliest stages of this startup will be self-funded. It should not require much initial infusion of capital beyond what is needed for hosting and membership in a few select collaborative services. I plan to run a very lean startup. The mid-term goal is to bootstrap the startup, thereby not requiring any angel or venture funding. However, I am not opposed to either if it makes sense down the road.</p>
<p>As this is a startup with zero outside investment and will initially have zero cash flow, founders will not receive any salary or benefits at first. You must be able to meet adequately your personal financial responsibilities and have a sufficient savings cushion to live in this way for at least 6 to 12 months. If that is not possible, if that concerns you, then this opportunity is not for you.</p>
<p>Founders will be owners of the company. Percent ownership will be negotiated with me on an individual basis. Stock options will also be made available.</p>
<p>Our company will strive to determine as quickly as possible the right fit of functionality and service for our intended target demographic. We will do this through analyzing metrics and customer development data obtained over a series of incremental launches (iterations of our platform). The initial goal will be to get a minimally viable service built as quickly as possible so that we can begin this process. We’ll then scale up our platform and service, leveraging our learned intelligence.</p>
<p><strong>What I’m Seeking</strong></p>
<p>In particular, I’m looking to create an energetic team that will function as generalist. We will build the initial, working technology platform, and create the business foundation.</p>
<p>Whereas each member of our team will have a specific, unique skill set that complements the overall startup process, there will be necessary overlap in the area of coding knowledge. This means that each team member must have sufficient Web coding experience, although only one of us truly needs to be an expert-level developer.</p>
<p>In the earliest stages of a Web-based startup, generalists often perform better than specialists. But, as we begin to successfully acquire members and bootstrap the business, we will hire (additional) specialists.</p>
<p>Here are the basic requirements (not listed in any particular order of importance):</p>
<p>Required of all Founders</p>
<ul>
<li>Must be 35-plus years of age</li>
<li>High energy, positive personality</li>
<li>A killer work ethic (days will be long)</li>
<li>Ability to work independently</li>
<li>Adept at creative problem solving</li>
<li>Proven creative, innovative, independent thinking</li>
<li>Ability to work initially for zero salary or benefits (this could last 6 or more months)</li>
<li>Sufficient comfort level with back-end PHP coding and front-end design</li>
<li><a href="http://jeffsayre.com/2010/01/19/are-you-a-successful-project-manager-or-a-reluctant-leader/">Project management</a> experience</li>
<li>Must live in the contiguous United States&mdash;for travel purposes</li>
<li>Must be a citizen of the United States&mdash;for legal purposes</li>
<li>Must have a computer with a video camera and high-speed Internet access</li>
<li>Thrive in taking measured risks</li>
<li>A healthy savings from which you can survive off of for at least 12 months</li>
<li>Respectful, proactive communication style</li>
<li>Easy to communicate with and a good, active listener</li>
<li>Understanding that there are no guarantees of success</li>
<li>Must be willing to travel to meet in person a few times in the first 6 months</li>
<li>You cannot be in arrears with local, state, or federal tax institutions</li>
<li>You cannot be a defendant in any pending or active lawsuit</li>
<li>Founders will share corporate risk and liability</li>
<li>Founders will sign shareholders’ agreement</li>
<li>Must be results-oriented, focused, tenacious, and driven</li>
</ul>
<p>More Specific Requirements&mdash;Coder, lead-developer</p>
<ul>
<li>At least one coder with significant experience in OOP MVC Python-based frameworks (PHP considered as well)</li>
<li>Experience and knowledge of DB design theory and practice&mdash;ERDs, normalization, sharding, etc.</li>
<li>Experience with PostgreSQL</li>
<li>Experience with Web security</li>
<li>Experience with agile development</li>
</ul>
<p>More Specific Requirements&mdash;Designer</p>
<ul>
<li>CSS and HTML guru</li>
<li>Ability to resolve browser-specific rendering issues</li>
<li>Keen eye for clean, uncluttered, Web-2.0 style design</li>
<li>A stickler for designs that validate</li>
<li>User-friendly UI/UX maven</li>
</ul>
<p>Not Required but a Plus (one or more)</p>
<ul>
<li>Previous startup experience as a founder</li>
<li>Previous early-stage startup experience as an employee</li>
<li>Extensive, high-level contacts in the New York book publishing Industry</li>
<li>Understanding of Semantic Web and experience with semantic technologies</li>
<li>Past P&#038;L responsibility</li>
<li>Previous position as CTO</li>
<li>Law or MBA degree</li>
<li>You are a Mac person</li>
</ul>
<p>Not An Issue</p>
<ul>
<li>Married/unmarried with kids</li>
<li>Desire not to relocate</li>
<li>Desire to get some sleep each night</li>
<li>It’s okay if you’re a PC person <img src='http://jeffsayre.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
</ul>
<p>I spent years in the PC world designing custom database solutions for big companies, I now prefer Macs. In fact, I have three Macs that I use for development. I no longer own a PC&mdash;which I have found to be a nice relief.</p>
<p>Now, I am not an ageist by any stretch of the imagination. So, if you’re an exceptional under-35 year old who is interested in this opportunity, send an email convincing me that you&#8217;re the one I should pick. You will still be required to meet all the requirements except age.</p>
<p><strong>If Interested, Here’s What you Need to Know and Do</strong></p>
<p>If you are not a highly-motivated, creative, driven, risk-tolerant, tenacious, tireless worker, then this opportunity is not for you.</p>
<p>This is not a job posting. It is a potential opportunity to become a startup founder.</p>
<p>If you are interested in being considered for a slot as one of three founders, <a href="http://jeffsayre.com/contact-me/">ping me here</a> <em>no later than February 6, 2009</em>.</p>
<p>In the body of your (brief) email tell me why this opportunity intrigues you and what experience and skills you bring to the table. Please include a link to your “About Me” page on your website (I prefer that over a digital resume). Include your Twitter and LinkedIn usernames. Finally, include your Skype or iChat contact details so that, if I think it desirable, we can have a video conference.</p>
<p>I will seriously review each potential candidate and make a short list of those with whom I wish to have a video conference. I retain the right to make the final decision on selection of partners. I do not guarantee that I will select any of the candidates who apply. I will not add another founder until I’ve found the right fit.</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2010/01/14/looking-for-two-startup-partners-35-plus-years-old/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>How Can BuddyPress Developers Earn a Living?</title>
		<link>http://jeffsayre.com/2010/01/02/how-can-buddypress-developers-earn-a-living/</link>
		<comments>http://jeffsayre.com/2010/01/02/how-can-buddypress-developers-earn-a-living/#comments</comments>
		<pubDate>Sat, 02 Jan 2010 19:35:48 +0000</pubDate>
		<dc:creator>Jeff Sayre</dc:creator>
				<category><![CDATA[BuddyPress]]></category>
		<category><![CDATA[Social Media & Semantic Web]]></category>
		<category><![CDATA[developers]]></category>

		<guid isPermaLink="false">http://jeffsayre.com/?p=121</guid>
		<description><![CDATA[In the WordPress ecosystem, when it comes to getting paid for time spent, it seems that theme designers are far ahead of plugin developers. GPLed&#8211;premium themes are not only an accepted part of this ecosystem, but seem to thrive. Plugin developers, on the other hand, have been shunned in the past for offering premium plugins. [...]]]></description>
			<content:encoded><![CDATA[<p>In the WordPress ecosystem, when it comes to getting paid for time spent, it seems that theme designers are far ahead of plugin developers. GPLed&ndash;premium themes are not only <a href="http://wordpress.org/extend/themes/commercial/">an accepted part of this ecosystem</a>, but seem to thrive. Plugin developers, on the other hand, have been shunned in the past for offering premium plugins. I won&#8217;t go into the reasons for this, but there is a sordid history, to say the least. I also do not want to reopen the war wounds from previous debates on this topic.<span id="more-121"></span></p>
<p>I think it is not only fair and appropriate, but also necessary for plugin developers to have the opportunity to make a living, or at least part of their living, writing great code that extends the base functionality of the BuddyPress platform.</p>
<p>To be clear, I am not an employee of Automattic. Like the vast majority of BuddyPress developers, I do not get paid a single cent for my contributions. In fact, as a salaried employee of Automattic, Andy Peatling, the lead developer of BuddyPress, is the only one who gets paid for his time working on this Open Source project (as far as I know).</p>
<p>Again, I am not looking to fan the embers of previous debates. I do not have any issue with how Automattic runs the WP plugin repository or care if they never list commercial plugins. That is not my point.</p>
<p>All I’m asking is how can plugin developers exist on an equal footing with theme designers when it comes to the issue of earning a living? Currently, the only three options that developers have, it seems, are to advertise a donate button for each plugin, accept consulting gigs, or accept advertising on their website. But <a href="http://www.justinparks.com/have-you-made-donation-to-your-wordpress-plugin-developer/">donate buttons rarely provide much support</a> and providing consulting services to clients is not for everyone. Furthermore, for me, I do not care to turn my personal website into a billboard.</p>
<p>The argument that plugin developers benefit by offering their work for free is flawed. It assumes that all developers are looking for consulting work, and two that all developers who offer their work for free will receive consulting work. Whereas it is certainly the case that some plugin developers have built a nice consulting business as a result of their donated work in the WordPress community, that does not mean that this route is for everyone.</p>
<p>What if a developer just wishes to code great-quality plugins like a theme designer designs high-quality themes? What if he or she does not want to provide any other service? How should this developer be compensated for their time?</p>
<p>But, since you asked, I do have a <a href="http://jeffsayre.com/2010/01/02/do-you-support-buddypress-privacy/">donate-like button for my BuddyPress Privacy Component</a>. You can read more about my version of &#8220;donate&#8221; here.</p>
<p>I would like to hear some ideas on this topic as I have contributed much time to the BuddyPress community but have not earned a single penny. I am not looking to provide programming services or start a consulting company. I have a significant project that I’m working on so I don&#8217;t have time for much else.</p>
<p>Since I am not yet making an money on my project, I need a vehicle to earn some semblance of a respectable cash flow. Just as some theme designers earn a decent income from their premium themes, I would like to think that my income vehicle could be BuddyPress component development.</p>
<p>So, ideas and civil discussion, please!</p>
]]></content:encoded>
			<wfw:commentRss>http://jeffsayre.com/2010/01/02/how-can-buddypress-developers-earn-a-living/feed/</wfw:commentRss>
		<slash:comments>43</slash:comments>
		</item>
	</channel>
</rss>
