Add to Copyright Filter
-
Hi, I found this code in another thread in this forum and was wondering how to add to the code to show date the copyright started and the current date which is shown in the code now.
Example: © 2001 to current date
`add_filter( ‘generate_copyright’, function($copyright){
$copyright = sprintf(
‘<span class=”copyright”>© %1$s %2$s</span> • %3$s’,
date( ‘Y’ ), // phpcs:ignore
get_bloginfo( ‘name’ ),
__( ‘All Rights Reserved’, ‘generatepress’ ),
);
return $copyright;
} );`The %2$s and other similar codes baffle me and I cannot seem to find anything that defines what they mean?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Add to Copyright Filter’ is closed to new replies.