0 ) { $o['GoogleID'] = $result[0]; } else { $o['GoogleID'] = ''; } if ( ( $o['HideInAdmin'] != '0' ) && ( $o['HideInAdmin'] != '1' ) ) { $o['HideInAdmin'] = '1'; } if ( ( $o['HideForLogged'] != '0' ) && ( $o['HideForLogged'] != '1' ) ) { $o['HideForLogged'] = '0'; } if ( ( $o['IntoFooter'] != '0' ) && ( $o['IntoFooter'] != '1' ) ) { $o['IntoFooter'] = '0'; } return $o; } /** * This method will save options into WordPress DB. * @param array $o Options array * @return bool Always returns true */ public static function save_options( $o = array() ) { $o = self::sanitize_options( $o ); update_option( self::OPTION_NAME, $o, true ); return true; } }