WordPress widget title link

I need to create a link for a specific widget title in WordPress and I am having some issues with this!

I have a class-wp-widget-pages.php with this specific code in it:

Read More
$title = apply_filters( 'widget_title', empty( $instance['title'] ) ? 
    __( 'Pages' ) : $instance['title'], $instance, $this->id_base );

In the child theme, how exactly should the code look like in the newly created class-wp-widget-pages.php file in order to add the link functionality?

Related posts