# wp-optimize/3.2.20/cache/php-5.3-functions.php

WP-Optimize – Cache, Compress images, Minify &amp; Clean database to boost page speed &amp; performance, version 3.2.20. 17 lines.

- Page: https://pluginprobe.com/plugins/wp-optimize/3.2.20/code/cache/php-5.3-functions.php
- Raw: https://pluginprobe.com/plugins/wp-optimize/3.2.20/raw/cache/php-5.3-functions.php
- Modified: 2023-05-08T16:54:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-optimize/3.2.20/code/cache/php-5.3-functions.php#L10-L20`.

```php
<?php

/**
 * Get path to wp-config.php when called from WP-CLI.
 *
 * @return string
 */
function wpo_wp_cli_locate_wp_config() {
	$config_path = '';

	if (is_callable('\WP_CLI\Utils\locate_wp_config')) {
		$config_path = \WP_CLI\Utils\locate_wp_config();
	}

	return $config_path;
}

```
