WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. dannyfoo
    Member
    Posted 3 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. :)

    http://wordpress.org/extend/plugins/wp-members/

  2. spectrus
    Member
    Posted 3 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
    Member
    Plugin Author

    Posted 3 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
    Member
    Posted 3 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

About this Topic

Tags