From: Laury GvR Date: Tue, 19 Apr 2016 19:25:55 +0000 (-0400) Subject: Switching functions around X-Git-Tag: v1.0.0^2~24 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=c535d1dfe6cbcfedb3b659e211f41e9778e4d21a;p=WP-Themes%2Fjollylama.git Switching functions around --- diff --git a/functions.php b/functions.php index cda8fa2..e64c261 100644 --- a/functions.php +++ b/functions.php @@ -93,16 +93,16 @@ function woo_product_inquiry_tab( $tabs ) { function woo_product_inquiry_content() { echo do_shortcode('[gravityform id="2" title="true" description="true"]'); } -add_filter( 'gform_field_value_product_sku', 'gform_add_product_sku_field' ); -function gform_add_product_sku_field( $value ) { - global $product; - return $product->get_sku(); -} add_filter( 'gform_field_value_product_name', 'gform_add_product_name_field' ); function gform_add_product_name_field( $value ) { global $product; return $product->get_title(); } +add_filter( 'gform_field_value_product_sku', 'gform_add_product_sku_field' ); +function gform_add_product_sku_field( $value ) { + global $product; + return $product->get_sku(); +} /* Header for posts*/ function glm_get_header() {