apply_filters ( 'infinite_scroll_credit', string $credits )

Filter Infinite Scroll's credit text.

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

View in GitHub

Parameters

$credits

(string) Infinite Scroll credits.


Changelog

Since: Jetpack 2.0.0


Notes

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 WordPress.org (“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="http://wordpress.org/" 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="http://jetpack.me/">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:

WordPress.com Logo

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

Google+ photo

You are commenting using your Google+ 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