afs-import_details

The ColorWay afs import details hook.

Description

apply_filters( 'afs-import_details', (unknown) $attachment, (unknown) $file, (unknown) $post_id, (unknown) $import_date ); 

Parameters (4)

0. $attachment (unknown)
The attachment.
1. $file (unknown)
The file.
2. $post_id (unknown)
The post id.
3. $import_date (unknown)
The import date.

Usage

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

Defined (1)

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

/functions.php  
  1. $attachment = apply_filters('afs-import_details', $attachment, $file, $post_id, $import_date);