delete_postmeta

delete_postmeta

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('delete_postmeta') is found 1 times:

  • /wp-includes/meta.php line 490
    		 * @since 2.9.0
    		 *
    		 * @param string[] $meta_ids An array of metadata entry IDs to delete.
    		 */
    		do_action( 'delete_postmeta', $meta_ids );
    	}
    
    	$query = "DELETE FROM $table WHERE $id_column IN( " . implode( ',', $meta_ids ) . ' )';
    
    	$count = $wpdb->query( $query );