widget_meta_poweredby WordPress Filter Hook

The widget_meta_poweredby hook is used to display a list of the WordPress widgets that are powering a particular site. This hook is typically used in the footer of a WordPress site.

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.


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

Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.9.0Added the $instance parameter.
3.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.