LLMS_Admin_Assets::get_analytics_options()
Retrieve an array of options used to localize the llms.analytics
JS instance.
Return Return
(array)
Source Source
File: includes/admin/class.llms.admin.assets.php
if ( ! empty( $screen->is_block_editor ) || 'customize' === $screen->base ) { echo "<script>window.llms.userInfoFields = JSON.parse( '" . wp_slash( wp_json_encode( llms_get_user_information_fields_for_editor() ) ) . "' );</script>"; } } /** * Retrieve an array of options used to localize the `llms.analytics` JS instance. * * @since 4.5.1 * * @return array */ protected function get_analytics_options() { /** * Create a number format string readable by google charts * * Replacing `9.9` with `9,9` and `0,0` with `0.0` to prevent loading errors encountered * as a result of the chart pattern not allowing usage of a comma for the decimal separator. *
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.5.1 | Introduced. |