Process embed shortcode in short description

This commit is contained in:
claudiulodro 2017-12-21 10:19:15 -08:00
parent 4f94d9dbbc
commit 9dc9fffc3a
1 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,8 @@ add_filter( 'woocommerce_short_description', 'prepend_attachment' );
add_filter( 'woocommerce_short_description', 'do_shortcode', 11 ); // After wpautop().
add_filter( 'woocommerce_short_description', 'wc_format_product_short_description', 9999999 );
add_filter( 'woocommerce_short_description', 'wc_do_oembeds' );
add_filter( 'woocommerce_short_description', array( $GLOBALS['wp_embed'], 'run_shortcode' ), 8 ); // Before wpautop().
add_filter( 'woocommerce_short_description', 'shortcode_unautop' );
/**
* Define a constant if it is not already defined.