Introduce filter for users_have_content within delete action of users.php

  1. Garrett Hyder


    Currently the reassign abilities for deleting a user are only introduced if users_have_content is true. This boolean is set depending on the user being the post_author on a post or is link_owner on a link. Certain plugins such as Co-Authors Plus associate users to content aside from setting them as post_author, in co-authors for instance additional co-authors are attributed to a post via terms on the author taxonomy.

    As is there's no way for the plugin to indicate the users have a content relation that isn't within the post_author or link_owner correlation.

    Would love for a filter to be applied to users_have_content so that plugins could tie in and indicate there exists a content relation.

    I'm specifically requesting this in relation with Co-Authors Plus so that when a Co-Author that's not the post_author is removed that we can reassign this relation using the delete_user action.

    Thank you

    Posted: 3 years ago #
  2. Stephen Edgar

    Reference https://core.trac.wordpress.org/ticket/36860

    Posted: 3 years ago #

RSS feed for this topic


You must log in to post.

  • Rating

    0 Votes
  • Status

    Good idea! We're working on it