<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Topic: WP Filter: login_redirect</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Mon, 20 May 2013 05:40:30 +0000</pubDate>

<item>
<title>helgatheviking on "WP Filter: login_redirect"</title>
<link>http://themeshaper.com/forums/topic/wp-filter-login_redirect#post-19415</link>
<pubDate>Mon, 28 Feb 2011 11:05:13 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">19415@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;neat find.  wish i had seen it sooner.  the OP forgot to &#60;strong&#62;return&#60;/strong&#62; a value to the filter so nothing ever happened.  when using add_filter you must always return something.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function admin_default_page() {
  $redirect_to = admin_url() . &#38;#39;post-new.php?post_type=artigo&#38;#39;;
  return $redirect_to;
}
add_filter(&#38;#39;login_redirect&#38;#39;, &#38;#39;admin_default_page&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>catamundo on "WP Filter: login_redirect"</title>
<link>http://themeshaper.com/forums/topic/wp-filter-login_redirect#post-19412</link>
<pubDate>Mon, 28 Feb 2011 08:16:57 +0000</pubDate>
<dc:creator>catamundo</dc:creator>
<guid isPermaLink="false">19412@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;subscribe
&#60;/p&#62;</description>
</item>
<item>
<title>iCristiano on "WP Filter: login_redirect"</title>
<link>http://themeshaper.com/forums/topic/wp-filter-login_redirect#post-17015</link>
<pubDate>Tue, 16 Nov 2010 01:10:08 +0000</pubDate>
<dc:creator>iCristiano</dc:creator>
<guid isPermaLink="false">17015@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi friends, I know its not an exactly Thematic topic, but like thematic functions with filters, I think I can find help here, and the topic could be interesting for everybody...&#60;/p&#62;
&#60;p&#62;I trying to change the default admin page... I mean, when somebody makes a login, by default he is redirected to Dashboard or profile.php... I want to change it.&#60;/p&#62;
&#60;p&#62;I found on the wp-login.php on line 536 (wp version 3.0.1) a filter called login_redirect that I think is the place to touch to change it. But I´m not doing it well.&#60;/p&#62;
&#60;p&#62;The code there is:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$redirect_to = apply_filters(&#38;#39;login_redirect&#38;#39;, $redirect_to, isset( $_REQUEST[&#38;#39;redirect_to&#38;#39;] ) ? $_REQUEST[&#38;#39;redirect_to&#38;#39;] : &#38;#39;&#38;#39;, $user);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I whote it on my functions.php:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function admin_default_page() {
  $redirect_to = &#38;#39;http://www.myweb.com.br/wp-admin/post-new.php?post_type=artigo&#38;#39;;
}
add_filter(&#38;#39;login_redirect&#38;#39;, &#38;#39;admin_default_page&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Any help ???&#60;br /&#62;
Thanks!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
