deleted_{$meta_type}_meta

deleted_{$meta_type}_meta

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.0.1

do_action('deleted_{$meta_type}_meta') is found 2 times:

  • /wp-includes/meta.php line 525
    	 * @param int      $object_id   ID of the object metadata is for.
    	 * @param string   $meta_key    Metadata key.
    	 * @param mixed    $_meta_value Metadata value.
    	 */
    	do_action( "deleted_{$meta_type}_meta", $meta_ids, $object_id, $meta_key, $_meta_value );
    
    	// Old-style action.
    	if ( 'post' === $meta_type ) {
    		/**
    		 * Fires immediately after deleting metadata for a post.
    		 *
    
  • /wp-includes/meta.php line 1062
    		// Clear the caches.
    		wp_cache_delete( $object_id, $meta_type . '_meta' );
    
    		/** This action is documented in wp-includes/meta.php */
    		do_action( "deleted_{$meta_type}_meta", (array) $meta_id, $object_id, $meta->meta_key, $meta->meta_value );
    
    		// Old-style action.
    		if ( 'post' === $meta_type || 'comment' === $meta_type ) {
    			/**
    			 * Fires immediately after deleting post or comment metadata of a specific type.
    			 *
    

See this hook used in plugins: