WP-Members: Membership Framework
[resolved] [Plugin: WP-Members] Insert Block custom field after X days (4 posts)

  1. dannyfoo
    Posted 4 years ago #

    My goal is to restrict content viewing after X days - login required after that. I'm wondering if anyone has successfully written a function to insert the custom field block=1 to a post after X days.

    Please do share it here. Thanks. :)


  2. spectrus
    Posted 4 years ago #

    Interesting issue, although I'm guessing it's too custom to found anywhere, and that you would need to write it yourself. Have you looked into WP's cron functions?

  3. Chad Butler
    Plugin Author

    Posted 4 years ago #

    That is a unique situation, but the suggestion of a cron function might be the way to go. I think you could probably pull off something like that without having to make any customization to the plugin itself (something you want to avoid to remain upgradeable).

  4. dannyfoo
    Posted 4 years ago #

    The Cron job was also the option suggested by a friend of mine. Hmm, guess I'll have to get down and dirty with that.

    Thanks for the feedback. :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Members: Membership Framework
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic