• I have a site that uses a few cron jobs to take care of regular tasks. These cron jobs need to access data that is stored in posts that are only accessible by certain users. An addon, like WP Force Login, is used to keep unregistered users out.

    This requires the cron to be run as a logged in user to succeed. How can I accomplish this? Or, perhaps there is a more elegant solution I am overlooking?

    Thank you in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • sammills

    (@sammills)

    hi there regarding to your question there’s an info that will help you, just visit and review this. . .
    https://doxfer.webmin.com/Webmin/Scheduled_Cron_Jobs

    Moderator bcworkz

    (@bcworkz)

    Your CRON script could directly access the DB to get data via SQL queries. You could use WP’s scheduled task facility instead of CRON for any WP related tasks. Function Reference/wp schedule event WP-CLI creates a command line interface which works well with CRON scripts. XMLRPC provides a method to login. Hackers have been hammering my site in vain through this method for weeks, so it must work (with the correct user and password) ??

    vince0190

    (@vince0190)

    hey there try to read this, theres a steps by steps that you my follow and also a program that will show to you. . .www.ibm.com/developerworks/library/l-job-scheduling/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to run scheduled cron events as logged in user’ is closed to new replies.