pods_delete_attachment
Delete Attachments from relationships.
Description
Parameters (1)
- 0. $id (int)
- The id.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'pods_delete_attachment', $id );
- The following example is for adding a hook callback.
- // define the pods_delete_attachment callback
- function action_pods_delete_attachment( $id ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'pods_delete_attachment', 'action_pods_delete_attachment', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'pods_delete_attachment', 'action_pods_delete_attachment', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /classes/PodsInit.php
- do_action( 'pods_delete_attachment', $_ID );