bp_attachments_get_plupload_l10n

The BuddyPress bp attachments get plupload l10n hook.

Description

apply_filters( 'bp_attachments_get_plupload_l10n', (callback) $array ); 

Parameters (1)

0. $array — Optional. (callback) => array( 'queue_limit_exceeded' => __( 'You have attempted to queue too many files.', 'buddypress' ), 'file_exceeds_size_limit' => __( '%s exceeds the maximum upload size for this site.', 'buddypress' ), 'zero_byte_file' => __( 'This file is empty. Please try another.', 'buddypress' ), 'invalid_filetype' => __( 'This file type is not allowed. Please try another.', 'buddypress' ), 'not_an_image' => __( 'This file is not an image. Please try another.', 'buddypress' ), 'image_memory_exceeded' => __( 'Memory exceeded. Please try another smaller file.', 'buddypress' ), 'image_dimensions_exceeded' => __( 'This is larger than the maximum size. Please try another.', 'buddypress' ), 'default_error' => __( 'An error occurred. Please try again later.', 'buddypress' ), 'missing_upload_url' => __( 'There was a configuration error. Please contact the server administrator.', 'buddypress' ), 'upload_limit_exceeded' => __( 'You may only upload 1 file.', 'buddypress' ), 'http_error' => __( 'HTTP error.', 'buddypress' ), 'upload_failed' => __( 'Upload failed.', 'buddypress' ), 'big_upload_failed' => __( 'Please try uploading this file with the %1$sbrowser uploader%2$s.', 'buddypress' ), 'big_upload_queued' => __( '%s exceeds the maximum upload size for the multi-file uploader when used in your browser.', 'buddypress' ), 'io_error' => __( 'IO error.', 'buddypress' ), 'security_error' => __( 'Security error.', 'buddypress' ), 'file_cancelled' => __( 'File canceled.', 'buddypress' ), 'upload_stopped' => __( 'Upload stopped.', 'buddypress' ), 'dismiss' => __( 'Dismiss', 'buddypress' ), 'crunching' => __( 'Crunching…', 'buddypress' ), 'unique_file_warning' => __( 'Make sure to upload a unique file', 'buddypress' ), 'error_uploading' => __( '“%s” has failed to upload.', 'buddypress' ), 'has_avatar_warning' => __( 'If you'd like to delete the existing profile photo but not upload a new one, please use the delete tab.', 'buddypress' ) )
The array.

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( 'bp_attachments_get_plupload_l10n', $array ); 
  2.  
  3. if ( !empty( $array ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the bp_attachments_get_plupload_l10n callback 
  2. function filter_bp_attachments_get_plupload_l10n( $array ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bp_attachments_get_plupload_l10n', 'filter_bp_attachments_get_plupload_l10n', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bp_attachments_get_plupload_l10n', 'filter_bp_attachments_get_plupload_l10n', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/bp-core/bp-core-attachments.php  
  1. return apply_filters( 'bp_attachments_get_plupload_l10n', array(