classes
9 years ago
elements
9 years ago
define.php
9 years ago
general-functions.php
9 years ago
general-hooks.php
9 years ago
general-shortcodes.php
9 years ago
index.php
9 years ago
general-functions.php
25 lines
| 1 | <?php |
| 2 | /** |
| 3 | * |
| 4 | * |
| 5 | * @package auxin-elements |
| 6 | * @license LICENSE.txt |
| 7 | * @author |
| 8 | * @link https://bitbucket.org/averta/ |
| 9 | * @copyright (c) 2010-2016 |
| 10 | */ |
| 11 | |
| 12 | /** |
| 13 | * Whether a plugin is active or not |
| 14 | * |
| 15 | * @param string $plugin_basename plugin directory name and mail file address |
| 16 | * @return bool True if plugin is active and FALSE otherwise |
| 17 | */ |
| 18 | if( ! function_exists( 'auxin_is_plugin_active' ) ){ |
| 19 | function auxin_is_plugin_active( $plugin_basename ){ |
| 20 | include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); |
| 21 | return is_plugin_active( $plugin_basename ); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 |