Log in

View Full Version : Can a plugin tell if it's being run from


tgmorris
12-30-2006, 12:04 AM
Can a plugin tell if it's being run via cron or not?

I'm doing a plugin that runs at threaddata_presave but I only want the plugin to run when it's being accessed from the rssposter.php file which runs via cron. I don't see a define that can be referenced so is there some other way to tell or am I missing something?