Analytics::render_sync_checkbox( $args )
Summary
No summary available.Source
File: src/BigCommerce/Settings/Sections/Analytics.php
public function render_sync_checkbox( $args ) { $option = $args[ 'option' ]; $default = isset( $args[ 'default' ] ) ? $args[ 'default' ] : ''; $value = (bool) get_option( $option, $default ); printf( '<label><input id="field-%s" type="checkbox" value="1" class="regular-text code" name="%s" %s /> %s</label>', esc_attr( $option ), esc_attr( $option ), checked( true, $value, false ), esc_html( __( 'Keep analytics tracking IDs in sync with your BigCommerce store settings', 'bigcommerce' ) ) ); printf( '<p class="description">%s</p>', esc_html( __( 'Disable the sync to set different tracking IDs on different sites connected to your account.', 'bigcommerce' ) ) ); }