# GeneratePress: Custom Footer Copyright

> Replaces the "Built with GeneratePress" footer line with your own copyright text and the current year, without the premium plugin.

- Type: PHP
- Runs: Frontend only
- Category: [Page Builders & Themes](https://wpide.com/library/category/page-builders/)
- Tags: generatepress, footer, copyright
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/generatepress-custom-copyright/

## Code

```php
// Footer text. {year} and {site} are replaced.
$wpide_gp_copyright = '&copy; {year} {site}. All rights reserved.';

add_filter( 'generate_copyright', function () use ( $wpide_gp_copyright ) {
    $text = str_replace(
        array( '{year}', '{site}' ),
        array( wp_date( 'Y' ), esc_html( get_bloginfo( 'name' ) ) ),
        $wpide_gp_copyright
    );

    return wp_kses_post( $text );
} );
```

## Notes

Use {year} and {site} as placeholders in the text.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "GeneratePress: Custom Footer Copyright" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
