src/WPConfigTransformer.php
public function remove( $type, $name ) {
		if ( ! $this->exists( $type, $name ) ) {
			return false;
		}

		$pattern  = sprintf( '/(?<=^|;|<\?php\s|<\?\s)%s\s*(\S|$)/m', preg_quote( $this->wp_configs[ $type ][ $name ]['src'], '/' ) );
		$contents = preg_replace( $pattern, '$1', $this->wp_config_src );

		return $this->save( $contents );
	}
public function remove( $type, $name ) {
		if ( ! $this->exists( $type, $name ) ) {
			return false;
		}

		$pattern  = sprintf( '/(?<=^|;|<\?php\s|<\?\s)%s\s*(\S|$)/m', preg_quote( $this->wp_configs[ $type ][ $name ]['src'], '/' ) );
		$contents = preg_replace( $pattern, '$1', $this->wp_config_src );

		return $this->save( $contents );
	}
public function remove ( $ type , $ name ) { if ( ! $ this -> exists ( $ type , $ name ) ) { return false ; } $ pattern = sprintf ( '/(?<=^|;|<\?php\s|<\?\s)%s\s*(\S|$)/m' , preg_quote ( $ this -> wp_configs [ $ type ] [ $ name ] [ 'src' ] , '/' ) ) ; $ contents = preg_replace ( $ pattern , '$1' , $ this -> wp_config_src ) ; return $ this -> save ( $ contents ) ; }
Removes a config from the wp-config.php file.

@param string $type Config type (constant or variable).
@param string $name Config name.

@return bool
Removes a config from the wp - config . php file .