W3cubDocs

/WordPress

apply_filters( 'post_types_to_delete_with_user', string[] $post_types_to_delete, int $id )

Filters the list of post types to delete with a user.

Parameters

$post_types_to_delete

(string[]) Array of post types to delete.

$id

(int) User ID.

Source

File: wp-admin/includes/user.php

View on Trac

Changelog

Version Description
3.4.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/post_types_to_delete_with_user