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 );
				}
			}
		}

Changelog

Changelog
Version Description
1.0.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.