BSF_Analytics::sanitize_option( bool $input )

Sanitize Callback Function


Description


Parameters

$input

(bool) (Required) Option value.


Source

File: admin/bsf-analytics/class-bsf-analytics.php

		public function sanitize_option( $input ) {

			if ( ! $input || 'no' === $input ) {
				return 'no';
			}

			return 'yes';
		}

Changelog

Changelog
Version Description
1.0.0 Introduced.

User Contributed Notes

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