widget_meta_poweredby

Filters the "Powered by WordPress" text in the Meta widget.

Description

apply_filters( 'widget_meta_poweredby', (string) $sprintf ); 

Parameters (1)

0. $sprintf — Optional. (string) => sprintf( '
  • %s
  • ', esc_url( __( 'https://wordpress.org/' ) ), esc_attr__( 'Powered by WordPress, state-of-the-art semantic personal publishing platform.' ), _x( 'WordPress.org', 'meta widget link text' ) )
    Default title text for the WordPress.org link.

    Usage

    To run the hook, copy the example below.
    1. $sprintf = apply_filters( 'widget_meta_poweredby', $sprintf ); 
    2.  
    3. if ( !empty( $sprintf ) ) { 
    4.  
    5. // everything has led up to this point... 
    6.  
    7.  
    The following example is for adding a hook callback.
    1. // define the widget_meta_poweredby callback 
    2. function filter_widget_meta_poweredby( $sprintf ) { 
    3. // make filter magic happen here... 
    4. return $sprintf
    5. }; 
    6.  
    7. // add the filter 
    8. add_filter( 'widget_meta_poweredby', 'filter_widget_meta_poweredby', 10, 1 ); 
    To remove a hook callback, use the example below.
    1. // remove the filter 
    2. remove_filter( 'widget_meta_poweredby', 'filter_widget_meta_poweredby', 10, 1 ); 

    Defined (1)

    The filter is defined in the following location(s).

    /wp-includes/widgets/class-wp-widget-meta.php  
    1. echo apply_filters( 'widget_meta_poweredby', sprintf( '<li><a href="%s" title="%s">%s</a></li>',