• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Edit product hook WooCommerce

phpwordpresswoocommerceproducthook-woocommerce


PHP Snippet 1:

add_action('woocommerce_single_product_summary', 'woocommerce_custom_single_excerpt', 15);

function woocommerce_custom_single_excerpt() {
    global $post;
    echo '<p class="product-description">';
    echo "hello";
    echo '</p>';
}

Related Snippets

Debugging Stripe Webhook Event

Twig - How to check if variable is a number / integer

Stop caching for PHP 5.5.3 in MAMP

how can I set a session variable in Drupal 8 and get it in a php script?

Laravel Carbon throws error The format separator does not match

Laravel php artisan serve to mimic HTTPS

Creating live search with AJAX and CodeIgniter

How to Create WooCommerce Subscription Product via. REST API?

How to map the two arrays with a duplicate value?

Adding hreflang tags automatically in WordPress subdirectory multisite

Add a text next to stock quantity if it is less than 10 in Woocommerce single product

PHP 8 - libxml_disable_entity_loader() has been deprecated. How do I replace the functionality it provides?

str_replace or preg_replace random number from string

Sum array values of a column within each column of an array with 3 levels

Make Shipping Method fields Mandatory on Woocommerce checkout page

About Contact Privacy policy Terms and conditions