[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/ -> class-wp-url-pattern-prefixer.php (summary)

Class 'WP_URL_Pattern_Prefixer'.

File Size: 135 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_URL_Pattern_Prefixer:: (4 methods):
  __construct()
  prefix_path_pattern()
  get_default_contexts()
  escape_pattern_string()


Class: WP_URL_Pattern_Prefixer  - X-Ref

Class for prefixing URL patterns.

This class is intended primarily for use as part of the speculative loading feature.

__construct( array $contexts = array()   X-Ref
Constructor.

param: array<string, string> $contexts Optional. Map of `$context_string => $base_path` pairs. Default is the

prefix_path_pattern( string $path_pattern, string $context = 'home' )   X-Ref
No description

get_default_contexts()   X-Ref
Returns the default contexts used by the class.

return: array<string, string> Map of `$context_string => $base_path` pairs.

escape_pattern_string( string $str )   X-Ref
Escapes a string for use in a URL pattern component.

return: string String with backslashes added where required.
param: string $str String to be escaped.



Generated : Fri Feb 21 08:20:01 2025 Cross-referenced by PHPXref