apply_filters( 'widget_meta_poweredby', string $html, array $instance )

Filters the “” list item HTML in the Meta widget.


$html string
Default HTML for the list item.
$instance array
Array of settings for the current widget.

Top ↑

More Information

  • The “widget_meta_poweredby” filter is part of the build in Meta widget. This filter allows you to alter the powered by link at the bottom of the widget. By default, this links to
  • Note that the filter function must return an value after it is finished processing or the result will be empty.

Top ↑


File: wp-includes/widgets/class-wp-widget-meta.php. View all references

echo apply_filters(
		'<li><a href="%1$s">%2$s</a></li>',
		esc_url( __( '' ) ),
		__( '' )

Top ↑


Version Description
4.9.0 Added the $instance parameter.
3.6.0 Introduced.

Top ↑

User Contributed Notes

  1. Skip to note 1 content
    Contributed by Steven Lin

    Example Migrated from Codex:

    Replacing with a custom powered by link.

    add_filter( 'widget_meta_poweredby', 'custom_meta_poweredby' );
    function custom_meta_poweredby( $html, $instance ) {
        // Replace with custom powered by link
        return ' More Awesome by <a href="; title="More Awesome by Matt Mullenweg">Matt Mullenweg</a>';

You must log in before being able to contribute a note or feedback.