Build script datas for the Uploader UI.

Description Description

Override this method from your child class to build the script datas.

Top ↑

Return Return

(array) The javascript localization data.

Source Source

File: bp-core/classes/class-bp-attachment.php

	public function script_data() {
		$script_data = array(
			'action'            => $this->action,
			'file_data_name'    => $this->file_input,
			'max_file_size'     => $this->original_max_filesize,
			'feedback_messages' => array(
				1 => __( 'Sorry, uploading the file failed.', 'buddypress' ),
				2 => __( 'File successfully uploaded.', 'buddypress' ),

		return $script_data;

Top ↑

Changelog Changelog

Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.