Filters the regular expression used to style the word before the first colon.
$regexarraywp-content/themes/twentytwenty/inc/template-tags.php:781twentytwenty_get_the_archive_title() * Filters the regular expression used to style the word before the first colon. * * @since Twenty Twenty 1.0 * * @param array $regex An array of regular expression pattern and replacement. */ $regex = apply_filters( 'twentytwenty_get_the_archive_title_regex', array( 'pattern' => '/(\A[^\:]+\:)/', 'replacement' => '<span class="color-accent">$1</span>', ) );Introduced in Twenty Twenty 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.