Shortcodes and current year in footer text
-
Hi there,
i tried to find you on WP slack or GitHub but I couldn’t.
Great plugin to provide an entry in the Customizer so that my client could modify autonomously the footer text. As he needed current year and a shortcode to run in there, I’ve slightly modified it.
Here is the modified bit of code in case you find useful to integrate it:
public function woa_sfft_custom_storefront_credit() { $options = array( '%current_year%', '%copy%' ); $replace = array( date('Y'), '©' ); $new_footer_text = get_theme_mod( 'woa_sfft_footer_text' ); $new_footer_text = str_replace( $options, $replace, get_theme_mod( 'woa_sfft_footer_text' ) ); ?> <div class="site-info"> <?php echo do_shortcode( $new_footer_text ); ?> </div><!-- .site-info --> <?php }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Shortcodes and current year in footer text’ is closed to new replies.