WP Hook: Hide Archive Title

updated: 02.08.2021
add_filter( 'get_the_archive_title', 'wp_custom_remove_name_cat' );
function wp_custom_remove_name_cat( $title ){
	if ( is_category() ) {
		$title = single_cat_title( '', false );
	} elseif ( is_tag() ) {
		$title = single_tag_title( '', false );
	}
	return $title;
}