Created
August 16, 2016 13:51
-
-
Save mckernanin/e523a1e779c9bfacb5a5ae9e72793408 to your computer and use it in GitHub Desktop.
Quickly replace the text in Divi's footer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function mck_replace_footer_text( $text ){ | |
if ( 'Designed by %1$s | Powered by %2$s' === $text ) { | |
$text = '© ' . date('Y') . ' ' . get_bloginfo( 'name' ) . '. All rights reserved.'; | |
} | |
return $text; | |
} | |
add_filter( 'gettext', 'mck_replace_footer_text' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment