Fetches an array containing all of the configurable path constants to be used in tokenization.

Description Description

Return Return

(array) The key is the define and the path is the constant.

Top ↑

Source Source

File: includes/wc-core-functions.php

function wc_get_path_define_tokens() {
	$defines = array(

	$path_tokens = array();
	foreach ( $defines as $define ) {
		if ( defined( $define ) ) {
			$path_tokens[ $define ] = constant( $define );

	return apply_filters( 'woocommerce_get_path_define_tokens', $path_tokens );

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.