deleted_post
Fires immediately after a post is deleted from the database.
Description
Parameters (1)
- 0. $array (array) =>
array( __CLASS__, 'flush_cache' )
- The array.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'deleted_post', $array );
- The following example is for adding a hook callback.
- // define the deleted_post callback
- function action_deleted_post( $array ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'deleted_post', 'action_deleted_post', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'deleted_post', 'action_deleted_post', 10, 1 );
Defined (2)
The action is defined in the following location(s).
- /modules/widgets/authors.php
- add_action( 'deleted_post', array( __CLASS__, 'flush_cache' ) );
- /sync/class.jetpack-sync-module-posts.php
- add_action( 'deleted_post', $callable, 10 );