Support » Plugin: Multiple Post Passwords » How to delete expired passwords using cron

  • Resolved verokramp


    Admin and all users of this great plugin. PleaseAdmin, can you share a code which will control how to have the system delete all passwords used to protect pages after every 24 hours, let’s say I want to make my password protected pages automatically delete passwords from pages I have used them at 12 midnight everyday. This feature will really be helpful

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Andreas Münch


    Hi @verokramp ,

    you can delete a post´s or page´s passwords using this code:

    update_post_meta( $post_id, '_mpp_additional_passwords', '');

    More information on how to create a cronjob can be found here:

    Andreas Thanks so much for this help. But am still able to login with the same password after expiration. Am I doing something wrong? Is there a code that can prevent me from logging in again with the expired password? Please help.

    • This reply was modified 2 months, 2 weeks ago by verokramp.
    Plugin Author Andreas Münch


    You can have a look into the post if the multiple passwords are still there or if they are deleted.
    Please understand that I cannot give extensive customization support for free.

    Andreas Münch: Thanks so much for this. Please I am ready to pay for this feature once it will work. How much will you charge for this. Kindly Name your price and let’s discuss business please. Waiting on your reply.

    Plugin Author Andreas Münch


    @verokramp please contact me via and we can discuss this in detail.
    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.