Delete the link to the WordPress site from the Meta widget

Modern versions of WordPress let you update with the click of a button. This feature was added in 2.7, so if you are using an older version, you will need to follow the steps to update manually. You can launch the update by clicking the link in the new version banner (if it’s there) or by going to the Dashboard > Updates screen. Once you are on the “Update WordPress” page, click the button “Update Now” to start the process off. You shouldn’t need to do anything else and, once it’s finished, you will be up-to-date.

After updating in the Meta widget, a link to the wordpress.org website appears. To remove it, you need to go to the hosting control panel or any other panel that has access to editing the php files of our site. Find the file class-wp-widget-meta.php in the folder */docs/wp-includes/widgets. Open it in the editor. Find and delete the following code:

<?php
/**
* Filters the “Powered by WordPress” text in the Meta widget.
*
* @since 3.6.0
* @since 4.9.0 Added the `$instance` parameter.
*
* @param string $title_text Default title text for the WordPress.org link.
* @param array $instance Array of settings for the current widget.
*/
echo apply_filters( ‘widget_meta_poweredby’, sprintf( ‘<li><a href=”%s” title=”%s”>%s</a></li>’,
esc_url( __( ‘https://wordpress.org/’ ) ),
esc_attr__( ‘Powered by WordPress, state-of-the-art semantic personal publishing platform.’ ),
_x( ‘WordPress.org’, ‘meta widget link text’ )
), $instance );
wp_meta();
?>

Save the changes. Update the page and you will see that the link is deleted.

Leave a Reply