<?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>Проектант &#187; перенаправление на главную</title>
	<atom:link href="https://k-det.dp.ua/tag/%D0%BF%D0%B5%D1%80%D0%B5%D0%BD%D0%B0%D0%BF%D1%80%D0%B0%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5-%D0%BD%D0%B0-%D0%B3%D0%BB%D0%B0%D0%B2%D0%BD%D1%83%D1%8E/feed/" rel="self" type="application/rss+xml" />
	<link>https://k-det.dp.ua</link>
	<description>Стань еще умнее!</description>
	<lastBuildDate>Tue, 07 May 2024 07:13:23 +0000</lastBuildDate>
	<language>ru-RU</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0</generator>
	<item>
		<title>Перенаправление зарегистрированного пользователя на Главную страницу в WordPress</title>
		<link>https://k-det.dp.ua/%d0%bf%d0%b5%d1%80%d0%b5%d0%bd%d0%b0%d0%bf%d1%80%d0%b0%d0%b2%d0%bb%d0%b5%d0%bd%d0%b8%d0%b5-%d0%b7%d0%b0%d1%80%d0%b5%d0%b3%d0%b8%d1%81%d1%82%d1%80%d0%b8%d1%80%d0%be%d0%b2%d0%b0%d0%bd%d0%bd%d0%be%d0%b3/</link>
		<comments>https://k-det.dp.ua/%d0%bf%d0%b5%d1%80%d0%b5%d0%bd%d0%b0%d0%bf%d1%80%d0%b0%d0%b2%d0%bb%d0%b5%d0%bd%d0%b8%d0%b5-%d0%b7%d0%b0%d1%80%d0%b5%d0%b3%d0%b8%d1%81%d1%82%d1%80%d0%b8%d1%80%d0%be%d0%b2%d0%b0%d0%bd%d0%bd%d0%be%d0%b3/#comments</comments>
		<pubDate>Sun, 30 Oct 2011 16:24:13 +0000</pubDate>
		<dc:creator><![CDATA[kdet_blog]]></dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[перенаправление на главную]]></category>

		<guid isPermaLink="false">http://k-det.dp.ua/?p=1363</guid>
		<description><![CDATA[Вариант &#8221; 1 Достаточно вставить в wp-login.php такие строки: add_filter(&#8216;login_redirect&#8217;,&#8217;redirect_to_home&#8217;); function redirect_to_home($url) { return get_option(&#8216;home&#8217;); } Вот кусок wp-login со вставленым кодом &#60;?php /** * WordPress User Page * * Handles authentication, registering, resetting passwords, forgot password, * and other &#8230; <a href="https://k-det.dp.ua/%d0%bf%d0%b5%d1%80%d0%b5%d0%bd%d0%b0%d0%bf%d1%80%d0%b0%d0%b2%d0%bb%d0%b5%d0%bd%d0%b8%d0%b5-%d0%b7%d0%b0%d1%80%d0%b5%d0%b3%d0%b8%d1%81%d1%82%d1%80%d0%b8%d1%80%d0%be%d0%b2%d0%b0%d0%bd%d0%bd%d0%be%d0%b3/">Читать далее <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><span style="color: #ff0000;">Вариант &#8221; 1</span></p>
<p><span style="font-size: 9pt;">Достаточно вставить в wp-login.php такие строки:</span></p>
<p>add_filter(&#8216;login_redirect&#8217;,&#8217;redirect_to_home&#8217;);<br />
function redirect_to_home($url) { return get_option(&#8216;home&#8217;); }</p>
<p>В<span style="font-size: 9pt;">от кусок wp-login со вставленым кодом</span></p>
<p>&lt;?php<br />
/**<br />
* WordPress User Page<br />
*<br />
* Handles authentication, registering, resetting passwords, forgot password,<br />
* and other user handling.<br />
*<br />
* @package WordPress<br />
*/</p>
<p>/** Make sure that the WordPress bootstrap has run before continuing. */<br />
require( dirname(__FILE__) . &#8216;/wp-load.php&#8217; );</p>
<p><strong>add_filter(&#8216;login_redirect&#8217;,&#8217;redirect_to_home&#8217;);<br />
function redirect_to_home($url) { return get_option(&#8216;home&#8217;); }</strong></p>
<p>// Redirect to https login if forced to use SSL<br />
if ( force_ssl_admin() &amp;&amp; !is_ssl() ) {<br />
if ( 0 === strpos($_SERVER['REQUEST_URI'], &#8216;http&#8217;) ) {<br />
wp_redirect(preg_replace(&#8216;|^http://|&#8217;, &#8216;https://&#8217;, $_SERVER['REQUEST_URI']));<br />
exit();<br />
} else {<br />
wp_redirect(&#8216;https://&#8217; . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);<br />
exit();<br />
}<br />
}</p>
<p><span style="color: #ff0000;">Вариант № 2</span></p>
<p>Или  добавить фрагмент в <code>functions.php</code> активной темы:</p>
<pre><code>function redirect_to_home($url) { return get_option('home'); } </code></pre>
<pre><code>add_filter('login_redirect', 'redirect_to_home');</code></pre>
<p><span style="font-size: 9pt;"><span style="font-family: Times New Roman;"><br />
</span></span></p>
<script type="text/javascript">(function (w, doc) {
    if (!w.__utlWdgt) {
        w.__utlWdgt = true;
        var d = doc, s = d.createElement('script'), g = 'getElementsByTagName';
        s.type = 'text/javascript';
        s.charset = 'UTF-8';
        s.async = true;
        s.src = ('https:' == w.location.protocol ? 'https' : 'http') + '://w.uptolike.com/widgets/v1/uptolike.js';
        var h = d[g]('body')[0];
        h.appendChild(s);
    }
})(window, document);
</script>
<div style="text-align:left;" data-lang="ru" data-url="https://k-det.dp.ua/%d0%bf%d0%b5%d1%80%d0%b5%d0%bd%d0%b0%d0%bf%d1%80%d0%b0%d0%b2%d0%bb%d0%b5%d0%bd%d0%b8%d0%b5-%d0%b7%d0%b0%d1%80%d0%b5%d0%b3%d0%b8%d1%81%d1%82%d1%80%d0%b8%d1%80%d0%be%d0%b2%d0%b0%d0%bd%d0%bd%d0%be%d0%b3/" data-url data-background-alpha="0.0" data-orientation="horizontal" data-text-color="000000" data-share-shape="round-rectangle" data-buttons-color="ff9300" data-sn-ids="fb.tw.ok.vk.gp.mr." data-counter-background-color="ffffff" data-share-counter-size="11" data-share-size="30" data-background-color="ededed" data-share-counter-type="common" data-pid="cmskdetdpua" data-counter-background-alpha="1.0" data-share-style="1" data-mode="share" data-following-enable="false" data-like-text-enable="false" data-selection-enable="true" data-icon-color="ffffff" class="uptolike-buttons">
</div>]]></content:encoded>
			<wfw:commentRss>https://k-det.dp.ua/%d0%bf%d0%b5%d1%80%d0%b5%d0%bd%d0%b0%d0%bf%d1%80%d0%b0%d0%b2%d0%bb%d0%b5%d0%bd%d0%b8%d0%b5-%d0%b7%d0%b0%d1%80%d0%b5%d0%b3%d0%b8%d1%81%d1%82%d1%80%d0%b8%d1%80%d0%be%d0%b2%d0%b0%d0%bd%d0%bd%d0%be%d0%b3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
