Automattic\WooCommerce\Internal\EmailEditor\WCTransactionalEmails
WCEmailTemplateSelectiveApplier::path_key
Stable string key for a path array, used as the choice-map key.
Метод класса: WCEmailTemplateSelectiveApplier{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = WCEmailTemplateSelectiveApplier::path_key( $path ): string;
- $path(array<int|string>) (обязательный)
- Path indices.
Код WCEmailTemplateSelectiveApplier::path_key() WCEmailTemplateSelectiveApplier::path key WC 11.2.2
private static function path_key( array $path ): string {
$encoded = wp_json_encode( array_values( $path ) );
return false === $encoded ? '[]' : $encoded;
}