deleted_post_meta

The Yoast SEO deleted post meta hook.

Description

do_action( 'deleted_post_meta', (unknown) $meta_ids, (null) $null, (null) $null, (null) $null ); 

Parameters (4)

0. $meta_ids (unknown)
The meta ids.
1. $null (null) => null
The null.
2. $null (null) => null
The null.
3. $null (null) => null
The null.

Usage

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

Defined (1)

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

/inc/class-wpseo-meta.php  
  1. do_action( 'deleted_post_meta', $meta_ids, null, null, null );