get_the_archive_title_prefix filter-hookWP 5.5.0

Filters the archive title prefix.

Usage

add_filter( 'get_the_archive_title_prefix', 'wp_kama_get_the_archive_title_prefix_filter' );

/**
 * Function for `get_the_archive_title_prefix` filter-hook.
 * 
 * @param string $prefix Archive title prefix.
 *
 * @return string
 */
function wp_kama_get_the_archive_title_prefix_filter( $prefix ){

	// filter...
	return $prefix;
}
$prefix(string)
Archive title prefix.

Changelog

Since 5.5.0 Introduced.

Where the hook is called

get_the_archive_title()
get_the_archive_title_prefix
wp-includes/general-template.php 1769
$prefix = apply_filters( 'get_the_archive_title_prefix', $prefix );

Where the hook is used in WordPress

wp-includes/blocks/query-title.php 31
add_filter( 'get_the_archive_title_prefix', '__return_empty_string', 1 );
wp-includes/blocks/query-title.php 33
remove_filter( 'get_the_archive_title_prefix', '__return_empty_string', 1 );