Title: IF function (in case temporary deactivate)
Last modified: August 21, 2016

---

# IF function (in case temporary deactivate)

 *  Resolved [afjsystem](https://wordpress.org/support/users/afjsystem/)
 * (@afjsystem)
 * [13 years ago](https://wordpress.org/support/topic/if-function-in-case-temporary-deactivate/)
 * hi Kasal, ..
 * i’d like to ask you, can i use this function (just in case i need to deactivate
   the plugins temporary) :
 * <?php if(function_exists(‘[hupso]’)){ do_shortcode( ‘[hupso]’ );} ?>
 * but it seems not working.. any suggestion ?
 * [http://wordpress.org/extend/plugins/hupso-share-buttons-for-twitter-facebook-google/](http://wordpress.org/extend/plugins/hupso-share-buttons-for-twitter-facebook-google/)

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

 *  Plugin Author [kasal](https://wordpress.org/support/users/kasal/)
 * (@kasal)
 * [13 years ago](https://wordpress.org/support/topic/if-function-in-case-temporary-deactivate/#post-3791043)
 * You can enable/disable Hupso plugin from PHP code like this:
 * To enable:
    `$HUPSO_SHOW = true;`
 * To disable:
    `$HUPSO_SHOW = false;`
 * [@afjsystem](https://wordpress.org/support/users/afjsystem/): I read your review.
   Can you [send me](http://www.hupso.com/share/feedback/) more details why you 
   had to clear your browser cache to get the plugin working. I would like to look
   into it.
 *  Thread Starter [afjsystem](https://wordpress.org/support/users/afjsystem/)
 * (@afjsystem)
 * [13 years ago](https://wordpress.org/support/topic/if-function-in-case-temporary-deactivate/#post-3791113)
 * ok i sent you the details.
 * yups but sometime if i need to deactivated, i do not need to tweak the code again.
   so it will result the error, because can’t call do_shortcode[hupso].
 * If every i need to deactivate temporary, so i have to turn the $HUPSO_SHOW true
   and false..? that’s ok for me but maybe someone else doesn’t want to do that.
 *  Thread Starter [afjsystem](https://wordpress.org/support/users/afjsystem/)
 * (@afjsystem)
 * [13 years ago](https://wordpress.org/support/topic/if-function-in-case-temporary-deactivate/#post-3791129)
 * closed

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

The topic ‘IF function (in case temporary deactivate)’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/hupso-share-buttons-for-twitter-facebook-
   google_ccac59.svg)
 * [Hupso Social Media Share Buttons](https://wordpress.org/plugins/hupso-share-buttons-for-twitter-facebook-google/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hupso-share-buttons-for-twitter-facebook-google/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hupso-share-buttons-for-twitter-facebook-google/)
 * [Active Topics](https://wordpress.org/support/plugin/hupso-share-buttons-for-twitter-facebook-google/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hupso-share-buttons-for-twitter-facebook-google/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hupso-share-buttons-for-twitter-facebook-google/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [afjsystem](https://wordpress.org/support/users/afjsystem/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/if-function-in-case-temporary-deactivate/#post-3791129)
 * Status: resolved