<?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"
	>

<channel>
	<title>YAB &#187; action</title>
	<atom:link href="http://blog.alexgirard.com/tag/action/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.alexgirard.com</link>
	<description>Yet Another Blog</description>
	<pubDate>Wed, 26 Nov 2008 23:44:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>[Wordpress] Register hooks hacks</title>
		<link>http://blog.alexgirard.com/wordpress-register-hooks-hacks/</link>
		<comments>http://blog.alexgirard.com/wordpress-register-hooks-hacks/#comments</comments>
		<pubDate>Wed, 07 May 2008 07:34:49 +0000</pubDate>
		<dc:creator>alx</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[action]]></category>

		<category><![CDATA[hack]]></category>

		<category><![CDATA[hook]]></category>

		<category><![CDATA[register]]></category>

		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.alexgirard.com/?p=156</guid>
		<description><![CDATA[On the way to launch Live ClÃ¶thing, I had to hack this morning the register action hooks for Wordpress, that don&#8217;t work as simply as excepted.
&#8216;register_post&#8217; action
You won&#8217;t be able to add more errors in $errors if you do not make it global in register_new_user() of wp-login.php:

function register_new_user($user_login, $user_email) {
	global $errors;

&#8216;user_register&#8217; action
For some strange reason, [...]]]></description>
			<content:encoded><![CDATA[<p>On the way to launch <a href="http://live.orlandooo-things.net">Live ClÃ¶thing</a>, I had to hack this morning the register action hooks for <a href="http://wordpress.org">Wordpress</a>, that don&#8217;t work as simply as excepted.</p>
<p><strong>&#8216;register_post&#8217; action</strong></p>
<p>You won&#8217;t be able to add more errors in $errors if you do not make it global in <em>register_new_user()</em> of <em>wp-login.php</em>:<br />
<code class="prettyprint"><br />
function register_new_user($user_login, $user_email) {<br />
	global $errors;<br />
</code></p>
<p><strong>&#8216;user_register&#8217; action</strong></p>
<p>For some strange reason, $user_id is not available, you&#8217;ll need to add this hack to read it in your hook function:<br />
<code class="prettyprint"><br />
$user_id = (int) func_get_arg( 0 );<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.alexgirard.com/wordpress-register-hooks-hacks/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
