prso_gform_pluploader_shortcode_attach_title

The Gravity Forms Advanced File Uploader prso gform pluploader shortcode attach title hook.

Description

apply_filters( 'prso_gform_pluploader_shortcode_attach_title', (unknown) $attachment_post_title_attachment_post_mime_type, (unknown) $attachment ); 

Parameters (2)

0. $attachment_post_title_attachment_post_mime_type (unknown)
The attachment post title attachment post mime type.
1. $attachment (unknown)
The attachment.

Usage

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

Defined (1)

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

/class.prso-gravity-forms-adv-uploader.php  
  1. $attachment_title = apply_filters( 'prso_gform_pluploader_shortcode_attach_title', $Attachment->post_title . ' ('. $Attachment->post_mime_type .')', $Attachment );