' ) || is_plugin_active( 'mp6/mp6.php' ); } /** * Sets/Gets the app_is_app variable * @since 1.0.0 * @param boolean $set Set the variable * @return boolean Variable value */ public static function is_app( $set = null ) { if ( $set !== null ) self::$is_app = $set; return self::$is_app; } } // Singleton rather than a global.. If they want access, they can use: AppPresser::get(); /** * Function wrapper for AppPresser::settings() * @since 1.0.0 * @param string $key Optional key to get a specific option * @return mixed Array of all options, a specific option, or false if specific option not found. */ function appp_get_setting( $key = false ) { return AppPresser::settings( $key ); }