Automattic\WooCommerce\Internal\EmailEditor\WCTransactionalEmails
WCEmailTemplateSelectiveApplier::path_key
Stable string key for a path array, used as the choice-map key.
Method of the class: WCEmailTemplateSelectiveApplier{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = WCEmailTemplateSelectiveApplier::path_key( $path ): string;
- $path(array<int|string>) (required)
- Path indices.
WCEmailTemplateSelectiveApplier::path_key() WCEmailTemplateSelectiveApplier::path key code WC 10.9.4
private static function path_key( array $path ): string {
$encoded = wp_json_encode( array_values( $path ) );
return false === $encoded ? '[]' : $encoded;
}