我尝试应用过滤器来添加Google Analytics
echo apply_filters( 'woocommerce_order_button_html', '<input type="submit" onClick="ga('send', 'event', { eventCategory: 'proceed to paypal button', eventAction: 'click button to pay', eventLabel: 'proceed to paypal'});" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '" />' );
在woocommerce付款按钮付款,但我在PHP时遇到某种语法错误
完整行
<input id="myInput" />