Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter andrew124

    (@andrew124)

    Update: I just found this filter for functions.php in WordPress posts. So it would be something link this, but for WooCommerce descriptions and short descriptions:

    `add_filter( ‘the_content’, ‘filter_the_content_in_the_main_loop’ );

    function filter_the_content_in_the_main_loop( $content ) {

    if ( is_single() ) {
    $content = preg_replace(array(‘”<a>”‘, ‘”</a>”‘), array(”,”), $content);
    }

    return $content;
    }`

    • This reply was modified 4 years, 3 months ago by andrew124.
Viewing 1 replies (of 1 total)