WP_Filesystem_FTPext::__destruct()publicWP 2.5.0

Destructor.

Method of the class: WP_Filesystem_FTPext{}

No Hooks.

Return

null. Nothing (null).

Usage

$WP_Filesystem_FTPext = new WP_Filesystem_FTPext();
$WP_Filesystem_FTPext->__destruct();

Changelog

Since 2.5.0 Introduced.

WP_Filesystem_FTPext::__destruct() code WP 6.5.4

public function __destruct() {
	if ( $this->link ) {
		ftp_close( $this->link );
	}
}