BSF_Analytics::render_settings_field_html( array $args )
Print settings field HTML.
Description
Parameters
- $args
-
(array) (Required) arguments to field.
Source
File: admin/bsf-analytics/class-bsf-analytics.php
public function render_settings_field_html( $args ) { ?> <fieldset> <label for="<?php echo esc_attr( $args['label_for'] ); ?>"> <input id="<?php echo esc_attr( $args['id'] ); ?>" type="checkbox" value="1" name="<?php echo esc_attr( $args['name'] ); ?>" <?php checked( get_site_option( $args['name'], 'no' ), 'yes' ); ?>> <?php /* translators: %s Product title */ echo esc_html( sprintf( __( 'Allow %s products to track non-sensitive usage tracking data.', 'astra-addon' ), $args['title'] ) );// phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText if ( is_multisite() ) { esc_html_e( ' This will be applicable for all sites from the network.', 'astra-addon' ); } ?> </label> <?php echo wp_kses_post( sprintf( '<a href="%1s" target="_blank" rel="noreferrer noopener">%2s</a>', esc_url( $args['usage_doc_link'] ), __( 'Learn More.', 'astra-addon' ) ) ); ?> </fieldset> <?php }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |