| [ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
WP_MatchesMapRegex helper class
| File Size: | 89 lines (2 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
WP_MatchesMapRegex:: (4 methods):
__construct()
apply()
_map()
callback()
Class: WP_MatchesMapRegex - X-Ref
Helper class to remove the need to use eval to replace $matches[] in query strings.| __construct( $subject, $matches ) X-Ref |
| constructor param: string $subject subject if regex param: array $matches data to use in map |
| apply( $subject, $matches ) X-Ref |
| Substitute substring matches in subject. static helper function to ease use return: string param: string $subject subject param: array $matches data used for substitution |
| _map() X-Ref |
| do the actual mapping return: string |
| callback( $matches ) X-Ref |
| preg_replace_callback hook return: string param: array $matches preg_replace regexp matches |
| Generated: Sat Nov 8 01:00:02 2025 | Cross-referenced by PHPXref 0.7.1 |