You appear to be a bot. Output may be restricted
Description
Tests if the plugin is loaded
This uses the oik shared library file. Perhaps this file should be delivered in oik-batch? We need to specify the full file name of the main plugin file otherwise we could end up finding a test file with the same suffix. What separator character should we be using? We can't use oik_path since that creates a fully qualified file name which may mess things up when using symlinks.
Usage
$bool = Tests_oik_privacy_policy::is_plugin_loaded( $plugin );
Parameters
- $plugin
- ( string ) required – plugin slug
Returns
bool true if the file is loaded
Source
File name: oik-privacy-policy/tests/test–oik-privacy-policy.php
Lines:
1 to 6 of 6
function is_plugin_loaded( $plugin ) { oik_require_lib( "bobbfunc" ); $loaded_file = bw_is_loaded( "oik-privacy-policy\oik-privacy-policy.php", false ); $loaded = (bool) $loaded_file; return $loaded; }