Replace the Jetpack Infinite Scroll Footer Credit
Replaces the "Proudly powered by WordPress" credit that Jetpack's Infinite Scroll shows in its sticky footer with your own text, or removes it.
Opens WPIDE on
Code
$wpide_credit = '© ' . wp_date( 'Y' ) . ' ' . get_bloginfo( 'name' ); // Credit HTML, or ''.
add_filter( 'infinite_scroll_credit', function () use ( $wpide_credit ) {
return wp_kses( $wpide_credit, array( 'a' => array( 'href' => true, 'rel' => true ) ) );
} );
Notes
Leave $wpide_credit empty to show nothing. Basic links are allowed.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.