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