BSF_Analytics::add_option_to_network( string $option, string $value )
Save analytics option to network.
Description
Parameters
- $option
-
(string) (Required) name of option.
- $value
-
(string) (Required) value of option.
Source
File: admin/bsf-analytics/class-bsf-analytics.php
public function add_option_to_network( $option, $value ) { // If action coming from general settings page. if ( isset( $_POST['option_page'] ) && 'general' === $_POST['option_page'] ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing if ( get_site_option( $option ) ) { update_site_option( $option, $value ); } else { add_site_option( $option, $value ); } } }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |