Title: Check if enabled
Last modified: August 22, 2017

---

# Check if enabled

 *  Resolved [Zsolt Edelényi](https://wordpress.org/support/users/batyuvitez/)
 * (@batyuvitez)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/check-if-enabled/)
 * I have a plugin, which should be active only when Fastes cache is enabled. Would
   you please tell me, how can I check with a global variable or hook or get_option,
   if your plugin is enabled?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcheck-if-enabled%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/check-if-enabled/#post-9430315)
 * You cannot because the page is saved as a html file so PHP does not work. You
   should do it with Ajax.
 *  Thread Starter [Zsolt Edelényi](https://wordpress.org/support/users/batyuvitez/)
 * (@batyuvitez)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/check-if-enabled/#post-9433347)
 * I would like to add a hook before saving the page. I.e I would make changes in
   the HTML code of the whole page.
    What I need to check if the “enabled” button
   is clicked or not on your plugin setup page?
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/check-if-enabled/#post-9435558)
 * This is not a solution. if you use a hook, the hook works only once. it does 
   not work for every visitor.
 *  Thread Starter [Zsolt Edelényi](https://wordpress.org/support/users/batyuvitez/)
 * (@batyuvitez)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/check-if-enabled/#post-9436450)
 * It is not necessary to work for every visitor. I want tu use this plugin and 
   alter HTML before you cache the page. I want to see only if the enabled button
   is checked or not.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/check-if-enabled/#post-9437051)
 * what is ‘enabled’ button?
 *  Thread Starter [Zsolt Edelényi](https://wordpress.org/support/users/batyuvitez/)
 * (@batyuvitez)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/check-if-enabled/#post-9438037)
 * WP Fastesc cache options > Cache system > enable. This is a checkbox. I would
   like to check the status of this checkbox.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/check-if-enabled/#post-9439281)
 * You should use the following code.
 *     ```
       if($GLOBALS["wp_fastest_cache_options"]->wpFastestCacheStatus == "on"){
       	//enabled
       }else{
       	//disabled
       }
       ```
   

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Check if enabled’ is closed to new replies.

 * ![](https://ps.w.org/wp-fastest-cache/assets/icon-256x256.png?rev=2064586)
 * [WP Fastest Cache - WordPress Cache Plugin](https://wordpress.org/plugins/wp-fastest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fastest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fastest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fastest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fastest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fastest-cache/reviews/)

## Tags

 * [development](https://wordpress.org/support/topic-tag/development/)

 * 7 replies
 * 2 participants
 * Last reply from: [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/check-if-enabled/#post-9439281)
 * Status: resolved