I'm tyring to change the "View all posts in category" tooltip you see when you hover over a category link in wordpress. Until now I've always done it in the Wordpress core file named category-template.php - however I'm searching for a method to do it in the functions.php so I don't have to change it after every Wordpress update.
I could only find this code to remove the "View all posts in category" title attribute alltogether, but I have no idea how to modify it:
add_filter( 'the_category', 'remove_category_title' );
function remove_category_title( $category ) {
return preg_replace( '/\s* title=\s*".*?"/i', '', $category );
}
I just want to change the text "View all posts in" and "View all posts filed under"
$chain .= '<a href="' . esc_url( get_category_link( $parent->term_id ) ) . '" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $parent->name ) ) . '">'.$name.'</a>' . $separator;