• 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

Is there a way to correctly use sanitize_text_field and wp_unslash that doesn't cause psalm to error with "expects string, possibly different type"

Show only featured products in Woocommerce shop page

Only on Firefox "Loading failed for the <script> with source"

PHP Include for HTML?

PHPSpreadsheet - How Do I Use Auto Migration Tool

Handling expired token in Laravel

Laravel Pagination links() not working

Laravel Passport - Not able to get token string in response?

Reorder attribute dropdown terms in Woocommerce single variable products

Losing session data after POST from third party website

How to Make Laravel Eloquent "IN" Query?

Dynamic table in HTML using MySQL and php

Multiple order by in WooCommerce

"properties should not be accessed directly" issue during WooCommerce 3.0 checkout

Is there a way to use Foundry Model for Authentification inside Functional Tests?

About Contact Privacy policy Terms and conditions