WordPress at a glance
function is not described


Plugin_Locator::find_using_option() public WC 1.0

Checks a given option for plugin paths.

{} It's a method of the class: Plugin_Locator{}

No Hooks.


Array. $plugin_paths The list of absolute paths we've found.


$Plugin_Locator = new Plugin_Locator();
$Plugin_Locator->find_using_option( $option_name, $site_option );
$option_name(string) (required)
The option that we want to check for plugin information.
Indicates whether or not we want to check the site option.

Code of Plugin_Locator::find_using_option() WC 5.3.0

public function find_using_option( $option_name, $site_option = false ) {
	$raw = $site_option ? get_site_option( $option_name ) : get_option( $option_name );
	if ( false === $raw ) {
		return array();

	return $this->convert_plugins_to_paths( $raw );