apply_filters ( 'infinite_scroll_credit', string $credits )

Filter Infinite Scroll's credit text.

Source file: modules/infinite-scroll/infinity.php

View in GitHub



(string) Infinite Scroll credits.


Since: Jetpack 2.0.0


Jetpack’s Infinite Scroll module automatically adds some text in the footer created by Infinite Scroll. By default, it includes the name of your theme, a link to (“Proudly powered by WordPress”), and a link to your site’s home page.

You can customize that text thanks to the infinite_scroll_credit filter, like so:

function jetpack_developer_custom_credit() {
    $credits = '<a href="" rel="generator">Proudly powered by WordPress</a> ';
    $credits .= sprintf( __( 'Theme: %1$s.', 'jetpack' ), function_exists( 'wp_get_theme' ) ? wp_get_theme()->Name : get_current_theme() );
    $credits .= ' (<a href="">Want to learn more about Jetpack?</a>)';
    return $credits;
add_filter( 'infinite_scroll_credit', 'jetpack_developer_custom_credit' );

Have a note to contribute?

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s