true, ); } /** * Current settings. * * @return array */ public static function get() { $saved = get_option( self::OPTION, array() ); return array_merge( self::defaults(), is_array( $saved ) ? array_intersect_key( $saved, self::defaults() ) : array() ); } /** * Clean the value posted by the Settings page. * * @param mixed $input Posted value. * @return array */ public static function sanitize( $input ) { return array( 'sound' => is_array( $input ) && ! empty( $input['sound'] ) ); } }