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
62                /**
63                 * Filters the "WordPress.org" list item HTML in the Meta widget.
64                 *
65                 * @since 3.6.0
66                 * @since 4.9.0 Added the `$instance` parameter.
67                 *
68                 * @param string $html     Default HTML for the WordPress.org list item.
69                 * @param array  $instance Array of settings for the current widget.
70                 */
71                echo apply_filters(
72                     'widget_meta_poweredby',
73                     sprintf(
74                          '<li><a href="%1$s">%2$s</a></li>',
75                          esc_url( __( 'https://wordpress.org/' ) ),
76                          __( 'WordPress.org' )
77                     ),
78                     $instance
79                );
80