Title: How can you enable the plugin programmatically through a shortcode?
Last modified: October 8, 2020

---

# How can you enable the plugin programmatically through a shortcode?

 *  Resolved [jackstron](https://wordpress.org/support/users/jackstron/)
 * (@jackstron)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/how-can-you-enable-the-plugin-programmatically-through-a-shortcode/)
 * I would ***NOT*** like to activate the plugin through the “Enable Cookie Banner”,
   but instead enable it programmatically.
 * How can this be done? (is there a shortcode I can use?)

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

 *  Plugin Author [Nikel](https://wordpress.org/support/users/nikelschubert/)
 * (@nikelschubert)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/how-can-you-enable-the-plugin-programmatically-through-a-shortcode/#post-13562520)
 * Hi,
 * i will have a look. But at the moment it is not possible, I am afraid.
 * Regards
    Nikel
 *  Thread Starter [jackstron](https://wordpress.org/support/users/jackstron/)
 * (@jackstron)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/how-can-you-enable-the-plugin-programmatically-through-a-shortcode/#post-13572020)
 * That would be really awesome. I am asking, because I need it for a specific project
   where the plugin should appear conditionally (only when needed). Also other Cookie
   plugins such as Borlabs have this functionality to enable the plugin with a shortcode.
 * It would be super if you could implement this.
    -  This reply was modified 5 years, 7 months ago by [jackstron](https://wordpress.org/support/users/jackstron/).

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

The topic ‘How can you enable the plugin programmatically through a shortcode?’ 
is closed to new replies.

 * ![](https://ps.w.org/beautiful-and-responsive-cookie-consent/assets/icon-256x256.
   png?rev=1959253)
 * [Beautiful Cookie Consent Banner](https://wordpress.org/plugins/beautiful-and-responsive-cookie-consent/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/beautiful-and-responsive-cookie-consent/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/beautiful-and-responsive-cookie-consent/)
 * [Active Topics](https://wordpress.org/support/plugin/beautiful-and-responsive-cookie-consent/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/beautiful-and-responsive-cookie-consent/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/beautiful-and-responsive-cookie-consent/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [jackstron](https://wordpress.org/support/users/jackstron/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/how-can-you-enable-the-plugin-programmatically-through-a-shortcode/#post-13572020)
 * Status: resolved