<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Language - trying to use filters in functions.php</title>
		<link>https://legacy.forums.gravityhelp.com/topic/language-trying-to-use-scripts-in-functionsphp</link>
		<description>Gravity Support Forums Topic: Language - trying to use filters in functions.php</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 18:24:58 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/language-trying-to-use-scripts-in-functionsphp" rel="self" type="application/rss+xml" />

		<item>
			<title>Richard Vav on "Language - trying to use filters in functions.php"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/language-trying-to-use-scripts-in-functionsphp#post-100730</link>
			<pubDate>Mon, 10 Dec 2012 04:29:05 +0000</pubDate>
			<dc:creator>Richard Vav</dc:creator>
			<guid isPermaLink="false">100730@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Your not necessarily doing anything wrong, but there are some themes and theme frameworks that don't like the functions.php file being modified.  I would recommend you put any custom functions in a separate file from the theme, that way if you change themes or your theme gets an update your changes won't be lost.&#60;/p&#62;
&#60;ol&#62;
&#60;li&#62;Create a new folder inside the /wp-content/ folder called mu-plugins&#60;/li&#62;
&#60;li&#62;Inside /wp-content/mu-plugins/ create a new file called custom-gravity-forms-functions.php&#60;/li&#62;
&#60;li&#62;Paste the contents of this &#60;a href=&#34;http://pastie.org/5505551&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/5505551&#60;/a&#62; into the file and save&#60;/li&#62;
&#60;/ol&#62;
&#60;p&#62;That's all you have to do, in wp-admin's list of installed plugins you will have a new group called 'must-use' which is where your new plugin will be listed, because it is in the must-use directory the plugin will automatically be enabled.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>eforsund on "Language - trying to use filters in functions.php"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/language-trying-to-use-scripts-in-functionsphp#post-100378</link>
			<pubDate>Sat, 08 Dec 2012 18:26:29 +0000</pubDate>
			<dc:creator>eforsund</dc:creator>
			<guid isPermaLink="false">100378@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I need to change the language from English to Norwegian in a form I am working on.&#60;/p&#62;
&#60;p&#62;I have tried to do so by using the filters that I found on the Gravity Forms website.&#60;/p&#62;
&#60;p&#62;I added the following code to the functions.php file:&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
add_filter(&#34;gform_product_price&#34;, &#34;set_price_label&#34;, 10, 2);&#60;br /&#62;
function set_price_label($sublabel, $form_id){&#60;br /&#62;
    return &#34;Pris:&#34;;&#60;br /&#62;
}&#60;br /&#62;
?&#38;gt;&#60;/p&#62;
&#60;p&#62;When saving the file and viewing the results, the website looks good. The change is made...&#60;/p&#62;
&#60;p&#62;However, next time I log into the Wordpress I get the white screen of death.&#60;/p&#62;
&#60;p&#62;I then have to replace the modified funcions.php file with the original one, and the WP dashboard returns to normal again. &#60;/p&#62;
&#60;p&#62;What am I doing wrong?&#60;/p&#62;
&#60;p&#62;The file looks like this:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/5500046&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/5500046&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
