Support » Plugin: Storefront Footer Text » Shortcodes and current year in footer text

  • Resolved lucspe


    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(
    		$replace = array(
    		$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 -->
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author wooassist


    Hi Lucspe,

    Good to know that this plugin helped your client as it helped ours. We will definitely add this and more.

    Thanks for sharing.

    You’re welcome. I am glad that is useful.

    btw: I just wanted to mention that it is kind of standard practice (at least in my experience on patches I sent for other plugins) to give props in the changelog when you incorporate changes contributed by other people, even if – like in this case – is a small one 🙂


    Plugin Author wooassist


    Hi Luca,

    Oops sorry, I forgot to give credit. Anyway, It should be there now.

    Again, Thanks a lot!


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shortcodes and current year in footer text’ is closed to new replies.