Skip to:
Content
Pages
Categories
Search
Top
Bottom

Is There A Way To Auto Delete Members Older Private Messages?

  • Avatar of pghjeffrey
    pghjeffrey
    Participant

    @pghjeffrey

    I am looking for a way to auto delete private messages that are older then __ days. Where I can fill the number in. I would like to limit how many saved emails a user can have. I have been looking for plugins and was not able to find anything. Any suggestions would be appreciated.

Viewing 1 replies (of 1 total)
  • Avatar of danbpfr
    danbpfr
    Participant

    @chouf1

    No, you have to create your own plugin or to go into phpmyadmin and do it manually.

    The example below delete all messages of sender ID 11 prior to the given(fake) date. Adjust the table prefix to your own and take care with cotes and backsticks when copy/pasting from here…. May this help ?

    <code>DELETE FROM `wp_bp_messages_messages`
    WHERE¬† `sender_id` = ’11′
    AND `date_sent` < 1962-08-22′
    ORDER BY `date_sent`</code>

     

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.