Support » Plugin: Amazon Link » fix [amazon] not work in post excerpt such as woocommerce short description

  • 
    <?php
    
    // fix shortcode [amazon ] not work in post excerpt such as woocommerce short description
    add_action( 'amazon_link_init', function ( $settings, $awlfw ) {
        add_filter( 'the_post', function ( $post ) use ( $awlfw ) {
            $post->post_excerpt = $awlfw->content_filter( $post->post_excerpt );
            return $post;
        } );
    }, 10, 2 );
    
  • The topic ‘fix [amazon] not work in post excerpt such as woocommerce short description’ is closed to new replies.