• I am working on a custom cron job for my site. My intention is to run it daily.
    It should:
    – Identify all plugins on the site
    – Identify each plugin’s version and status (activated or not)
    – Compare with the the information from the last time the code was run and log:
    — Change in plugin version
    — Any plugin removed
    — Any plugin added
    — Status (Activated or not) of each plugin listed as having been changed, removed or added
    My code works find with most plugins.
    However, it reports that user-role-editor is not active.
    Could this be due to a option_active_plugins filter that is applied when a program runs as a cron job?
    Thanks in advance for any insight.
    Bob

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Vladimir Garagulya

    (@shinephp)

    URE excludes itself from the list of installed plugins, if current user does not have administrator role. It uses ‘all_plugins’ filter.

    Apparently cron job running on server does not have active user with ‘administrator’ role.

    Thread Starter redrockbob

    (@redrockbob)

    @shinephp : Thank you for your response. Unless I can figure out how to remove all filters associated with active plugins, I will have to be content to have the logfile simply report version changes or additions/deletions to the list of all plugins.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Active vs. Inactive Status’ is closed to new replies.