Session::set_file( string $filename )

Description #

Set a file in user’s session.

Parameters #

  • $filename
    string (Required) File name.

Changelog #

VersionDescription
4.1.8Introduced.

Source #

File: includes/class/class-session.php

	public function set_file( $filename ) {
		$files = $this->get( 'files' );

		if ( ! $files ) {
			$files = array();
		}

		$files[] = $filename;
		$this->set( 'files', $files );
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment