Last active
July 4, 2024 14:27
-
-
Save someguy9/a5f78223ffcfd4c4eb8e7162718ca345 to your computer and use it in GitHub Desktop.
See if WordPress plugin is active on the front end
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Checking if a WordPress plugin is active on the front end | |
include_once ABSPATH . 'wp-admin/includes/plugin.php'; | |
if ( is_plugin_active( 'plugin-directory/main-plugin-file.php' ) ) { | |
// plugin is active | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment