BP_Attachment::script_data()
Build script datas for the Uploader UI.
Description Description
Override this method from your child class to build the script datas.
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; }
Changelog Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |