Title: Active vs. Inactive Status
Last modified: February 2, 2022

---

# Active vs. Inactive Status

 *  [redrockbob](https://wordpress.org/support/users/redrockbob/)
 * (@redrockbob)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/active-vs-inactive-status/)
 * 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](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/active-vs-inactive-status/#post-15324594)
 * 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](https://wordpress.org/support/users/redrockbob/)
 * (@redrockbob)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/active-vs-inactive-status/#post-15326871)
 * [@shinephp](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/user-role-editor/assets/icon-256x256.jpg?rev=1020390)
 * [User Role Editor](https://wordpress.org/plugins/user-role-editor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-role-editor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-role-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/user-role-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-role-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-role-editor/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [redrockbob](https://wordpress.org/support/users/redrockbob/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/active-vs-inactive-status/#post-15326871)
 * Status: not resolved