scossdl_off_additional_directories()WPSCache 1.0

Creates a regexp compatible pattern from the directories to be included in matching.

Хуков нет.

Возвращает

String. with the pattern with {@literal |} as prefix, or empty

Использование

scossdl_off_additional_directories();

Код scossdl_off_additional_directories() WPSCache 1.12.4

function scossdl_off_additional_directories() {
	global $ossdl_off_include_dirs;

	$arr_dirs = array();
	foreach ( $ossdl_off_include_dirs as $dir ) {
		$arr_dirs[] = preg_quote( trim( $dir ), '`' );
	}

	return implode( '|', $arr_dirs );
}