<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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>Support Forum - Topic: Using Filter to Make Phone Number Optional</title>
		<link>http://www.kriesi.at/support/topic/using-filter-to-make-phone-number-optional</link>
		<description>Support Forum - Topic: Using Filter to Make Phone Number Optional</description>
		<language>en-US</language>
		<pubDate>Sat, 25 May 2013 20:24:16 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/using-filter-to-make-phone-number-optional" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "Using Filter to Make Phone Number Optional"</title>
			<link>http://www.kriesi.at/support/topic/using-filter-to-make-phone-number-optional#post-60895</link>
			<pubDate>Tue, 19 Jun 2012 08:05:38 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">60895@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi! &#60;/p&#62;
&#60;p&#62; Please add it to the bottom of functions.php. &#60;/p&#62;
&#60;p&#62; Regards,&#60;br /&#62;
Peter
&#60;/p&#62;</description>
		</item>
		<item>
			<title>InterdisciplinaryInnovation on "Using Filter to Make Phone Number Optional"</title>
			<link>http://www.kriesi.at/support/topic/using-filter-to-make-phone-number-optional#post-60848</link>
			<pubDate>Tue, 19 Jun 2012 01:19:36 +0000</pubDate>
			<dc:creator>InterdisciplinaryInnovation</dc:creator>
			<guid isPermaLink="false">60848@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I have been trying to make the telephone number check out field in WooCommerce not-required.  I am still learning about hooks and filters, and I am having trouble understanding which of the following functions to use, and where to put it in the code.  I think the first one would remove the billing phone number, and the second one would just make it non-required.  Can you please let me know in which file/directory I should place this code, and if there are any brackets, tags, etc that I should next them in?&#60;/p&#62;
&#60;p&#62;add_filter('woocommerce_billing_fields', 'custom_woocommerce_billing_fields');&#60;br /&#62;
function custom_woocommerce_billing_fields( $fields_array ) {&#60;br /&#62;
	unset($fields_array['billing_phone']);&#60;br /&#62;
	return $fields_array;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;-----&#60;/p&#62;
&#60;p&#62;add_filter('woocommerce_billing_fields', 'custom_woocommerce_billing_fields');&#60;br /&#62;
function custom_woocommerce_billing_fields( $fields_array ) {&#60;br /&#62;
$fields_array['billing_phone']['required'] = false;&#60;br /&#62;
return $fields_array;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
