edit_attachment
Fires once an existing attachment has been updated.
Description
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.
- // run the action
- do_action( 'edit_attachment', $array, $ngfb_meta_save_priority );
- The following example is for adding a hook callback.
- // define the edit_attachment callback
- function action_edit_attachment( $array, $ngfb_meta_save_priority ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'edit_attachment', 'action_edit_attachment', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'edit_attachment', 'action_edit_attachment', 10, 2 );
Defined (2)
The action is defined in the following location(s).
- /lib/post.php
- add_action( 'edit_attachment', array( &$this, 'save_options' ), NGFB_META_SAVE_PRIORITY );
- add_action( 'edit_attachment', array( &$this, 'clear_cache' ), NGFB_META_CACHE_PRIORITY );