Automattic\Jetpack\Autoloader\jpe7838abe751421865f42aa61338ab306
Path_Processor::get_normalized_constants() private WC 1.0
Fetches an array of normalized paths keyed by the constant they came from.
{} Это метод класса: Path_Processor{}
Хуков нет.
Возвращает
Строку[]
. The normalized paths keyed by the constant.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_normalized_constants();
Код Path_Processor::get_normalized_constants() Path Processor::get normalized constants WC 5.2.2
private function get_normalized_constants() {
$raw_constants = array(
// Order the constants from most-specific to least-specific.
'WP_PLUGIN_DIR',
'WPMU_PLUGIN_DIR',
'WP_CONTENT_DIR',
'ABSPATH',
);
$constants = array();
foreach ( $raw_constants as $raw ) {
if ( ! defined( $raw ) ) {
continue;
}
$path = wp_normalize_path( constant( $raw ) );
if ( isset( $path ) ) {
$constants[ $raw ] = $path;
}
}
return $constants;
}