{"id":6708811,"date":"2015-11-02T15:54:22","date_gmt":"2015-11-02T15:54:22","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/custom-functions-broken-after-update\/"},"modified":"2016-08-30T19:48:01","modified_gmt":"2016-08-30T19:48:01","slug":"custom-functions-broken-after-update","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/custom-functions-broken-after-update\/","title":{"rendered":"Custom functions broken after update"},"content":{"rendered":"<p>Hello<br \/>\nIn a past support ticket I asked how to make it so the first and last name were no longer required.  I used the function below and it worked great but now appears to be broken.<\/p>\n<p>function my_custom_prefix_give_modify_required_fields( $required_fields ) {<\/p>\n<p>\tif ( isset( $required_fields[&#8216;give_first&#8217;] ) ) {<br \/>\n\t\tunset( $required_fields[&#8216;give_first&#8217;] );<br \/>\n\t}<\/p>\n<p>\treturn $required_fields;<\/p>\n<p>}<\/p>\n<p>add_filter( &#8216;give_purchase_form_required_fields&#8217;, &#8216;my_custom_prefix_give_modify_required_fields&#8217;, 10, 1 );<br \/>\nadd_filter( &#8216;give_donation_form_required_fields&#8217;, &#8216;my_custom_prefix_give_modify_required_fields&#8217;, 10, 1 );<\/p>\n<p>https:\/\/wordpress.org\/plugins\/give\/<\/p>\n","protected":false},"template":"","class_list":["post-6708811","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6708811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6708811\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6708811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}