edit_attachment

Fires once an existing attachment has been updated.

Description

add_action( 'edit_attachment', (callback) $array, (unknown) $ngfb_meta_save_priority ); 

Parameters (2)

0. $array (callback) => array( &$this, 'save_options' )
The array.
1. $ngfb_meta_save_priority (unknown) => NGFB_META_SAVE_PRIORITY
The ngfb meta save priority.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'edit_attachment', $array, $ngfb_meta_save_priority ); 
The following example is for adding a hook callback.
  1. // define the edit_attachment callback 
  2. function action_edit_attachment( $array, $ngfb_meta_save_priority ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'edit_attachment', 'action_edit_attachment', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'edit_attachment', 'action_edit_attachment', 10, 2 ); 

Defined (2)

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

/lib/post.php  
  1. add_action( 'edit_attachment', array( &$this, 'save_options' ), NGFB_META_SAVE_PRIORITY ); 
  1. add_action( 'edit_attachment', array( &$this, 'clear_cache' ), NGFB_META_CACHE_PRIORITY );