<?xml version="1.0" encoding="ISO-8859-1"?>
<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>sastgroup.com &#187; script php</title>
	<atom:link href="http://www.sastgroup.com/category/script-php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sastgroup.com</link>
	<description>Tutorials guide scripts web tool</description>
	<lastBuildDate>Thu, 17 May 2012 10:00:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>[PHP - WordPress] Creare uno shortcode che visualizza l&#8217;indirizzo IP nei post e pagine</title>
		<link>http://www.sastgroup.com/tutorials/php-wordpress-creare-uno-shortcode-che-visualizza-lindirizzo-ip-nei-post-e-pagine</link>
		<comments>http://www.sastgroup.com/tutorials/php-wordpress-creare-uno-shortcode-che-visualizza-lindirizzo-ip-nei-post-e-pagine#comments</comments>
		<pubDate>Wed, 16 May 2012 11:00:34 +0000</pubDate>
		<dc:creator>daniele</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.sastgroup.com/?p=12770</guid>
		<description><![CDATA[&#8230;]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sastgroup.com/images/logo_php.jpg"><img src="http://www.sastgroup.com/images/logo_php.jpg" alt="" title="logo_php" width="550" height="200" class="alignnone size-full wp-image-5684" /></a></p>
<p>Aggiungendo il seguente snippet all'interno del file functions.php del vostro tema WordPress verrà definito uno shortcode che permette di visualizzare l'indirizzo IP dei vostri utenti all'interno dei post o pagine.</p>
<pre class="php">&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> display_user_ip<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
        <span style="color: #0000ff;">$ip</span> = <span style="color: #0000ff;">$_SERVER</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'REMOTE_ADDR'</span><span style="color: #66cc66;">&#93;</span>;
        <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">$ip</span>;
<span style="color: #66cc66;">&#125;</span>
add_shortcode<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'user_ip'</span>, <span style="color: #ff0000;">'display_user_ip'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sastgroup.com/tutorials/php-wordpress-creare-uno-shortcode-che-visualizza-lindirizzo-ip-nei-post-e-pagine/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[PHP - WordPress] Evidenziare le parole chiavi nei risultati di ricerca all&#8217;interno di the_excerpt e the_title</title>
		<link>http://www.sastgroup.com/tutorials/php-wordpress-evidenziare-le-parole-chiavi-nei-risultati-di-ricerca-allinterno-di-the_excerpt-e-the_title</link>
		<comments>http://www.sastgroup.com/tutorials/php-wordpress-evidenziare-le-parole-chiavi-nei-risultati-di-ricerca-allinterno-di-the_excerpt-e-the_title#comments</comments>
		<pubDate>Tue, 15 May 2012 11:00:48 +0000</pubDate>
		<dc:creator>daniele</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.sastgroup.com/?p=12760</guid>
		<description><![CDATA[&#8230;]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sastgroup.com/images/logo_php.jpg"><img src="http://www.sastgroup.com/images/logo_php.jpg" alt="" title="logo_php" width="550" height="200" class="alignnone size-full wp-image-5684" /></a></p>
<p>Aggiungendo il seguente snippet all'interno del file functions.php del vostro tema WordPress, sarà possibile evidenziare le parole chiavi nei risultati di ricerca all'interno di the_excerpt e the_title.</p>
<pre class="php">&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> wps_highlight_results<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$text</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
     <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>is_search<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
     <span style="color: #0000ff;">$sr</span> = get_query_var<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'s'</span><span style="color: #66cc66;">&#41;</span>;
     <span style="color: #0000ff;">$keys</span> = <a href="http://www.php.net/explode"><span style="color: #000066;">explode</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot; &quot;</span>,<span style="color: #0000ff;">$sr</span><span style="color: #66cc66;">&#41;</span>;
     <span style="color: #0000ff;">$text</span> = <a href="http://www.php.net/preg_replace"><span style="color: #000066;">preg_replace</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'/('</span>.<a href="http://www.php.net/implode"><span style="color: #000066;">implode</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'|'</span>, <span style="color: #0000ff;">$keys</span><span style="color: #66cc66;">&#41;</span> .<span style="color: #ff0000;">')/iu'</span>, <span style="color: #ff0000;">'&lt;strong class=&quot;search-excerpt&quot;&gt;'</span>.<span style="color: #0000ff;">$sr</span>.<span style="color: #ff0000;">'&lt;/strong&gt;'</span>, <span style="color: #0000ff;">$text</span><span style="color: #66cc66;">&#41;</span>;
     <span style="color: #66cc66;">&#125;</span>
     <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">$text</span>;
<span style="color: #66cc66;">&#125;</span>
add_filter<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'the_excerpt'</span>, <span style="color: #ff0000;">'wps_highlight_results'</span><span style="color: #66cc66;">&#41;</span>;
add_filter<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'the_title'</span>, <span style="color: #ff0000;">'wps_highlight_results'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sastgroup.com/tutorials/php-wordpress-evidenziare-le-parole-chiavi-nei-risultati-di-ricerca-allinterno-di-the_excerpt-e-the_title/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[PHP - WordPress] Come regolare le dimensioni di default di un contenuto embed</title>
		<link>http://www.sastgroup.com/tutorials/php-wordpress-come-regolare-le-dimensioni-di-default-di-un-contenuto-embed</link>
		<comments>http://www.sastgroup.com/tutorials/php-wordpress-come-regolare-le-dimensioni-di-default-di-un-contenuto-embed#comments</comments>
		<pubDate>Fri, 11 May 2012 11:00:56 +0000</pubDate>
		<dc:creator>daniele</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.sastgroup.com/?p=12723</guid>
		<description><![CDATA[&#8230;]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sastgroup.com/images/logo_php.jpg"><img src="http://www.sastgroup.com/images/logo_php.jpg" alt="" title="logo_php" width="550" height="200" class="alignnone size-full wp-image-5684" /></a></p>
<p>Aggiungendo questo snippet all'interno del file functions.php del vostro tema WordPress, sarà possibile modificare le dimensioni di default di un contenuto embed.</p>
<pre class="php">&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> wps_embed_size<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$embed_size</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
    <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>is_single<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
        <span style="color: #0000ff;">$embed_size</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'height'</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #cc66cc;">240</span>;
        <span style="color: #0000ff;">$embed_size</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'width'</span><span style="color: #66cc66;">&#93;</span>  = <span style="color: #cc66cc;">380</span>;
    <span style="color: #66cc66;">&#125;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">$embed_size</span>;
<span style="color: #66cc66;">&#125;</span>
add_filter<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'embed_defaults'</span>, <span style="color: #ff0000;">'wps_embed_size'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sastgroup.com/tutorials/php-wordpress-come-regolare-le-dimensioni-di-default-di-un-contenuto-embed/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[PHP - WordPress] Come disabilitare temi, plugin e plugin editor, e aggiornamenti</title>
		<link>http://www.sastgroup.com/tutorials/php-wordpress-come-disabilitare-temi-plugin-e-plugin-editor-e-aggiornamenti</link>
		<comments>http://www.sastgroup.com/tutorials/php-wordpress-come-disabilitare-temi-plugin-e-plugin-editor-e-aggiornamenti#comments</comments>
		<pubDate>Thu, 10 May 2012 11:00:56 +0000</pubDate>
		<dc:creator>daniele</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.sastgroup.com/?p=12715</guid>
		<description><![CDATA[&#8230;]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sastgroup.com/images/logo_php.jpg"><img src="http://www.sastgroup.com/images/logo_php.jpg" alt="" title="logo_php" width="550" height="200" class="alignnone size-full wp-image-5684" /></a></p>
<p>Aggiungendo la prima riga di codice all'interno del file wp-config.php verranno disabilitati i temi e l'editor plugin. Aggiungendo invece la seconda riga di codice all'interno del file wp-config.php verranno disabilitati i plugin e il core update.</p>
<pre class="php">&nbsp;
<a href="http://www.php.net/define"><span style="color: #000066;">define</span></a><span style="color: #66cc66;">&#40;</span>‘DISALLOW_FILE_EDIT’,<span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">// theme, plugin</span>
<a href="http://www.php.net/define"><span style="color: #000066;">define</span></a><span style="color: #66cc66;">&#40;</span>‘DISALLOW_FILE_MODS’,<span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">// core, plugin</span>
&nbsp;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sastgroup.com/tutorials/php-wordpress-come-disabilitare-temi-plugin-e-plugin-editor-e-aggiornamenti/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>41 Icone sociali in formato PNG da scaricare gratuitamente</title>
		<link>http://www.sastgroup.com/links/41-icone-sociali-in-formato-png-da-scaricare-gratuitamente</link>
		<comments>http://www.sastgroup.com/links/41-icone-sociali-in-formato-png-da-scaricare-gratuitamente#comments</comments>
		<pubDate>Thu, 10 May 2012 09:00:38 +0000</pubDate>
		<dc:creator>daniele</dc:creator>
				<category><![CDATA[links]]></category>
		<category><![CDATA[utility]]></category>

		<guid isPermaLink="false">http://www.sastgroup.com/?p=12708</guid>
		<description><![CDATA[&#8230;]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sastgroup.com/images/wpid-Photo-09mag2012-2006.jpg"><img src="http://www.sastgroup.com/images/wpid-Photo-09mag2012-2006.jpg" alt="" title="wpid-Photo-09mag2012-2006.jpg" width="557" height="200" class="alignnone size-full wp-image-12709" /></a></p>
<p>PremiumPixels ha appena rilasciato un bellissimo set di 41 icone sociali in formato PNG da scaricare gratuitamente nelle dimensioni 16px e 32px.<br />
Queste icone sono molto utili se si desiderano integrare alcune funzionalità che offrono i social network all'interno del proprio sito.</p>
<p>Link: <a href="http://www.premiumpixels.com/freebies/41-social-media-icons-png/">http://www.premiumpixels.com/freebies/41-social-media-icons-png/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sastgroup.com/links/41-icone-sociali-in-formato-png-da-scaricare-gratuitamente/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[PHP - WordPress] Rimuovere le dimensioni non necessarie delle miniature / immagini</title>
		<link>http://www.sastgroup.com/tutorials/php-wordpress-rimuovere-le-dimensioni-non-necessarie-delle-miniature-immagini</link>
		<comments>http://www.sastgroup.com/tutorials/php-wordpress-rimuovere-le-dimensioni-non-necessarie-delle-miniature-immagini#comments</comments>
		<pubDate>Sat, 05 May 2012 11:00:31 +0000</pubDate>
		<dc:creator>daniele</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.sastgroup.com/?p=12671</guid>
		<description><![CDATA[&#8230;]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sastgroup.com/images/logo_php.jpg"><img src="http://www.sastgroup.com/images/logo_php.jpg" alt="" title="logo_php" width="550" height="200" class="alignnone size-full wp-image-5684" /></a></p>
<p>Aggiungendo tutte o solo alcune righe di codice all'interno del file functions.php del vostro tema WordPress, potrete rimuovere in modo efficace alcune delle dimensioni predefinite delle immagini che non sono necessarie. Assicuratevi di includere sia _w che _h per la larghezza e l'altezza.</p>
<pre class="php">&nbsp;
    update_option<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'thumbnail_size_h'</span>, <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span>;
    update_option<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'thumbnail_size_w'</span>, <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span>;
    update_option<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'medium_size_h'</span>, <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span>;
    update_option<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'medium_size_w'</span>, <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span>;
    update_option<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'large_size_h'</span>, <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span>;
    update_option<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'large_size_w'</span>, <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sastgroup.com/tutorials/php-wordpress-rimuovere-le-dimensioni-non-necessarie-delle-miniature-immagini/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[PHP - WordPress] Come controllare se un plugin è attivo</title>
		<link>http://www.sastgroup.com/tutorials/php-wordpress-come-controllare-se-un-plugin-e-attivo</link>
		<comments>http://www.sastgroup.com/tutorials/php-wordpress-come-controllare-se-un-plugin-e-attivo#comments</comments>
		<pubDate>Thu, 03 May 2012 11:00:57 +0000</pubDate>
		<dc:creator>daniele</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.sastgroup.com/?p=12655</guid>
		<description><![CDATA[&#8230;]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sastgroup.com/images/logo_php.jpg"><img src="http://www.sastgroup.com/images/logo_php.jpg" alt="" title="logo_php" width="550" height="200" class="alignnone size-full wp-image-5684" /></a></p>
<p>In questo semplicissimo tutorial vedremo come controllare se un plugin è attivo o meno utilizzando la funzione is_plugin_active messa a disposizione da WordPress.</p>
<pre class="php">&nbsp;
&lt; ?php
   <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>is_plugin_active<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'plugin-directory/plugin-file.php'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
      <span style="color: #808080; font-style: italic;">// the plugin is active</span>
   <span style="color: #66cc66;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sastgroup.com/tutorials/php-wordpress-come-controllare-se-un-plugin-e-attivo/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[PHP - WordPress] Escludere pagine dalla lista delle pagine nel pannello di amministrazione</title>
		<link>http://www.sastgroup.com/tutorials/php-wordpress-escludere-pagine-dalla-lista-delle-pagine-nel-pannello-di-amministrazione</link>
		<comments>http://www.sastgroup.com/tutorials/php-wordpress-escludere-pagine-dalla-lista-delle-pagine-nel-pannello-di-amministrazione#comments</comments>
		<pubDate>Wed, 02 May 2012 11:00:40 +0000</pubDate>
		<dc:creator>daniele</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.sastgroup.com/?p=12637</guid>
		<description><![CDATA[&#8230;]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sastgroup.com/images/logo_php.jpg"><img src="http://www.sastgroup.com/images/logo_php.jpg" alt="" title="logo_php" width="550" height="200" class="alignnone size-full wp-image-5684" /></a></p>
<p>Aggiungendo questo snippet all'interno del file functions.php del vostro tema WordPress sarà possibile eliminare alcune pagine nella lista delle pagine del vostro pannello di controllo WordPress.</p>
<p>Ricordatevi di modificare l'array presente alla riga 8 che contiene gli id delle pagine da escludere.</p>
<pre class="php">&nbsp;
add_action<span style="color: #66cc66;">&#40;</span> ‘pre_get_posts’ ,’exclude_this_page’ <span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">function</span> exclude_this_page<span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$query</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
        <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span> !is_admin<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>
                <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">$query</span>;
        <a href="http://www.php.net/global"><span style="color: #000066;">global</span></a> <span style="color: #0000ff;">$pagenow</span>;
        <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span> ‘edit.php’ == <span style="color: #0000ff;">$pagenow</span> &amp;&amp; <span style="color: #66cc66;">&#40;</span> get_query_var<span style="color: #66cc66;">&#40;</span>‘post_type’<span style="color: #66cc66;">&#41;</span> &amp;&amp; ‘page’ == get_query_var<span style="color: #66cc66;">&#40;</span>‘post_type’<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>
                <span style="color: #0000ff;">$query</span>-&gt;<span style="color: #006600;">set</span><span style="color: #66cc66;">&#40;</span> ‘post__not_in’, <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span>,<span style="color: #cc66cc;">2</span>,<span style="color: #cc66cc;">14</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">// array page ids</span>
        <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">$query</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sastgroup.com/tutorials/php-wordpress-escludere-pagine-dalla-lista-delle-pagine-nel-pannello-di-amministrazione/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[PHP - WordPress] Sostituire automaticamente parole nei tuoi post</title>
		<link>http://www.sastgroup.com/tutorials/php-wordpress-sostituire-automaticamente-parole-nei-tuoi-post</link>
		<comments>http://www.sastgroup.com/tutorials/php-wordpress-sostituire-automaticamente-parole-nei-tuoi-post#comments</comments>
		<pubDate>Tue, 01 May 2012 11:00:01 +0000</pubDate>
		<dc:creator>daniele</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.sastgroup.com/?p=12624</guid>
		<description><![CDATA[&#8230;]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sastgroup.com/images/logo_php.jpg"><img src="http://www.sastgroup.com/images/logo_php.jpg" alt="" title="logo_php" width="550" height="200" class="alignnone size-full wp-image-5684" /></a></p>
<p>Immaginate che in ogni post del vostro blog avete aggiunto una firma, un contatto ecc. Adesso per qualche motivo dovete cambiarla, come fate? La soluzione sarebbe quella di armarvi di pazienza e modificare ogni singolo post con le nuove informazioni. Ovviamente è un lavoro da pazzi, quindi ecco per voi la soluzione per risolvere questo problema con poche righe di codice!</p>
<pre class="php">&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> replace_text_wps<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$text</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
    <span style="color: #0000ff;">$replace</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span>
        <span style="color: #808080; font-style: italic;">// 'WORD TO REPLACE' =&gt; 'REPLACE WORD WITH THIS'</span>
        <span style="color: #ff0000;">'wordpress'</span> =&gt; <span style="color: #ff0000;">'&lt;a href=&quot;#&quot;&gt;wordpress&lt;/a&gt;'</span>,
        <span style="color: #ff0000;">'excerpt'</span> =&gt; <span style="color: #ff0000;">'&lt;a href=&quot;#&quot;&gt;excerpt&lt;/a&gt;'</span>,
        <span style="color: #ff0000;">'function'</span> =&gt; <span style="color: #ff0000;">'&lt;a href=&quot;#&quot;&gt;function&lt;/a&gt;'</span>
    <span style="color: #66cc66;">&#41;</span>;
    <span style="color: #0000ff;">$text</span> = <a href="http://www.php.net/str_replace"><span style="color: #000066;">str_replace</span></a><span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/array_keys"><span style="color: #000066;">array_keys</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$replace</span><span style="color: #66cc66;">&#41;</span>, <span style="color: #0000ff;">$replace</span>, <span style="color: #0000ff;">$text</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">$text</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
add_filter<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'the_content'</span>, <span style="color: #ff0000;">'replace_text_wps'</span><span style="color: #66cc66;">&#41;</span>;
add_filter<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'the_excerpt'</span>, <span style="color: #ff0000;">'replace_text_wps'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sastgroup.com/tutorials/php-wordpress-sostituire-automaticamente-parole-nei-tuoi-post/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[PHP - WordPress] Come mostrare un messaggio urgente nel pannello di controllo</title>
		<link>http://www.sastgroup.com/tutorials/php-wordpress-come-mostrare-un-messaggio-urgente-nel-pannello-di-controllo</link>
		<comments>http://www.sastgroup.com/tutorials/php-wordpress-come-mostrare-un-messaggio-urgente-nel-pannello-di-controllo#comments</comments>
		<pubDate>Thu, 26 Apr 2012 11:00:32 +0000</pubDate>
		<dc:creator>daniele</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.sastgroup.com/?p=12583</guid>
		<description><![CDATA[&#8230;]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sastgroup.com/images/logo_php.jpg"><img src="http://www.sastgroup.com/images/logo_php.jpg" alt="" title="logo_php" width="550" height="200" class="alignnone size-full wp-image-5684" /></a></p>
<p>Quando si crea un plugin o un tema personalizzato, potrebbe essere utile informare i vostri utenti che è necessario fare qualcosa di importante per poter utilizzare correttamente il vostro plugin.<br />
In questo tutorial vedremo come mostrare un messaggio all'interno del pannello di controllo del vostro blog WordPress.</p>
<pre class="php">&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> showMessage<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$message</span>, <span style="color: #0000ff;">$errormsg</span> = <span style="color: #000000; font-weight: bold;">false</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$errormsg</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">'
&lt;div id=&quot;message&quot; class=&quot;error&quot;&gt;'</span>;
	<span style="color: #66cc66;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span>
		<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">'
&lt;div id=&quot;message&quot; class=&quot;updated fade&quot;&gt;'</span>;
	<span style="color: #66cc66;">&#125;</span>
&nbsp;
	<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">&quot;
&nbsp;
&lt;strong&gt;$message&lt;/strong&gt;
&lt;/div&gt;
&nbsp;
&quot;</span>;
<span style="color: #66cc66;">&#125;</span>  
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> showAdminMessages<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
    showMessage<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;You need to upgrade your database as soon as possible...&quot;</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
    <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>user_can<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'manage_options'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
       showMessage<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Hello admins!&quot;</span><span style="color: #66cc66;">&#41;</span>;
    <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span>
&nbsp;
add_action<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'admin_notices'</span>, <span style="color: #ff0000;">'showAdminMessages'</span><span style="color: #66cc66;">&#41;</span>;
&lt;/div&gt;
&nbsp;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sastgroup.com/tutorials/php-wordpress-come-mostrare-un-messaggio-urgente-nel-pannello-di-controllo/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[PHP - WordPress] Aggiungere una miniatura ai feed rss</title>
		<link>http://www.sastgroup.com/tutorials/php-wordpress-aggiungere-una-miniatura-ai-feed-rss</link>
		<comments>http://www.sastgroup.com/tutorials/php-wordpress-aggiungere-una-miniatura-ai-feed-rss#comments</comments>
		<pubDate>Sun, 22 Apr 2012 11:00:53 +0000</pubDate>
		<dc:creator>daniele</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.sastgroup.com/?p=12522</guid>
		<description><![CDATA[&#8230;]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sastgroup.com/images/logo_php.jpg"><img src="http://www.sastgroup.com/images/logo_php.jpg" alt="" title="logo_php" width="550" height="200" class="alignnone size-full wp-image-5684" /></a></p>
<p>In questo semplice tutorial vedremo come aggiungere una miniatura ai feed rss del vostro blog WordPress. Per fare quanto detto creeremo una funzione personalizzata che si occuperà di controllare se per il post esiste una miniatura e in caso positivo la stamperà insieme al contenuto.</p>
<p>Incollate il seguente codice all'interno del file functions.php del vostro tema WordPress:</p>
<pre class="php">&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> diw_post_thumbnail_feeds<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$content</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	<a href="http://www.php.net/global"><span style="color: #000066;">global</span></a> <span style="color: #0000ff;">$post</span>;
	<span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>has_post_thumbnail<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$post</span>-&gt;<span style="color: #006600;">ID</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		<span style="color: #0000ff;">$content</span> = <span style="color: #ff0000;">'
&lt;div&gt;'</span> . get_the_post_thumbnail<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$post</span>-&gt;<span style="color: #006600;">ID</span><span style="color: #66cc66;">&#41;</span> . <span style="color: #ff0000;">'&lt;/div&gt;
&nbsp;
'</span> . <span style="color: #0000ff;">$content</span>;
	<span style="color: #66cc66;">&#125;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #0000ff;">$content</span>;
<span style="color: #66cc66;">&#125;</span>
add_filter<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'the_excerpt_rss'</span>, <span style="color: #ff0000;">'diw_post_thumbnail_feeds'</span><span style="color: #66cc66;">&#41;</span>;
add_filter<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'the_content_feed'</span>, <span style="color: #ff0000;">'diw_post_thumbnail_feeds'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sastgroup.com/tutorials/php-wordpress-aggiungere-una-miniatura-ai-feed-rss/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cambiare il footer nel pannello di controllo di WordPress</title>
		<link>http://www.sastgroup.com/tutorials/cambiare-il-footer-nel-pannello-di-controllo-di-wordpress</link>
		<comments>http://www.sastgroup.com/tutorials/cambiare-il-footer-nel-pannello-di-controllo-di-wordpress#comments</comments>
		<pubDate>Sun, 15 Apr 2012 11:00:31 +0000</pubDate>
		<dc:creator>daniele</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.sastgroup.com/?p=12484</guid>
		<description><![CDATA[&#8230;]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sastgroup.com/images/logo_php.jpg"><img src="http://www.sastgroup.com/images/logo_php.jpg" alt="" title="logo_php" width="550" height="200" class="alignnone size-full wp-image-5684" /></a></p>
<p>Molti di voi ci avete chiesto come eliminare il copyright di WordPress dal footer del pannello di controllo, così eccovi accontentati con un semplicissimo tutorial!</p>
<pre class="php">&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> remove_footer_admin <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">'powered by &lt;a href=&quot;http://www.wordpress.org&quot; target=&quot;_blank&quot;&gt;WordPress&lt;/a&gt;'</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
add_filter<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'admin_footer_text'</span>, <span style="color: #ff0000;">'remove_footer_admin'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.sastgroup.com/tutorials/cambiare-il-footer-nel-pannello-di-controllo-di-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

