Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: widget_meta_poweredby

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
78                /**
79                 * Filters the "WordPress.org" list item HTML in the Meta widget.
80                 *
81                 * @since 3.6.0
82                 * @since 4.9.0 Added the `$instance` parameter.
83                 *
84                 * @param string $html     Default HTML for the WordPress.org list item.
85                 * @param array  $instance Array of settings for the current widget.
86                 */
87                echo apply_filters(
88                     'widget_meta_poweredby',
89                     sprintf(
90                          '<li><a href="%1$s">%2$s</a></li>',
91                          esc_url( __( 'https://wordpress.org/' ) ),
92                          __( 'WordPress.org' )
93                     ),
94                     $instance
95                );
96