HamroKhanpin/hamrokhaanpaan/wp-content/__plugins/wp-optimize/cache/php-5.3-functions.php

18 lines
381 B
PHP
Raw Normal View History

2024-04-29 07:27:44 +00:00
<?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')) {
// phpcs:ignore PHPCompatibility.LanguageConstructs.NewLanguageConstructs.t_ns_separatorFound
$config_path = \WP_CLI\Utils\locate_wp_config();
}
return $config_path;
}