wordpress / latest / hooks / widget_meta_poweredby.html

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

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

Parameters

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

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 WordPress.org.
  • Note that the filter function must return an value after it is finished processing or the result will be empty.

Source

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

echo apply_filters(
	'widget_meta_poweredby',
	sprintf(
		'<li><a href="%1$s">%2$s</a></li>',
		esc_url( __( 'https://wordpress.org/' ) ),
		__( 'WordPress.org' )
	),
	$instance
);

Used By

Used By Description

Changelog

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

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/widget_meta_poweredby