• Resolved DenisCGN

    (@deniscgn)


    Hello,

    where can I set my CPT that, when I delete a user the user posts will be deleted?

    ‘delete_with_user’
    (bool) Whether to delete posts of this type when deleting a user. If true, posts of this type belonging to the user will be moved to trash when then user is deleted. If false, posts of this type belonging to the user will *not* be trashed or deleted. If not set (the default), posts are trashed if post_type_supports(‘author’). Otherwise posts are not trashed or deleted. Default null.

    I cant find it in the settings.

    Thanks,
    Denis

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘CPT DELETE when DELETE USER’ is closed to new replies.