! empty( $saved['render'] ), 'post_types' => isset( $saved['post_types'] ) && is_array( $saved['post_types'] ) ? array_values( array_map( 'strval', $saved['post_types'] ) ) : array(), ); } /** * Save from the settings form. * * @param array $input Raw input. * @return void */ public static function save( array $input ) { update_option( self::OPTION, array( 'render' => ! empty( $input['render'] ), 'post_types' => array(), ), false ); } }