add shortcode in short description
remove_action( 'woocommerce_after_shop_loop_item', 'sp_loop_product_description', 6 );
add_action( 'woocommerce_after_shop_loop_item', 'wp_11326339_custom_description', 6 );
function wp_11326339_custom_description() {
global $product;
$wc_product = wc_get_product( $product );
if ( ! $wc_product ) {
return false;
}
$short_description = $wc_product->get_short_description();
if ( '' !== $short_description ) {
echo '<div itemprop="description">' . do_shortcode( wpautop( wptexturize( $short_description ) ) ) . '</div>';
}
}<?php echo do_shortcode("[shortcode]"); ?>
Also in PHP:
- check whether key exists in associative array php
- echo errors php
- PHP Stream Functions
- brew php version
- db seed refresh laravel
- create new laravel project with specific version
- array_reverse function in php
- check if string contains substrin php
- alert js in php
- array key exists php
- enable display error in php
- check array key exit php
- check string appear in string php
- display date time twig
- Which are valid PHP error handling keywords? try throw catch finally
- acheck key exist in array php
- current uri php[
- cron job in wordpress
- create folder in php
- display picture in pdf generated with laravel
- composer clear cache laravel
- Builder::unique() laravel
- ->sale_price
- 5xx error in lrave;