I am working with a Plugin and going to integrate it with woocomerce. Using my plugin i want to add product author name in product single page .

so i need a hook how to add author name in product single page.
Please help me how to solve this.


You can use this action :

function mycustomfuncion()
    global $product;
    $productId = $product->id;  

In mycustomfuncion() you can get the product Id and by this product id you can fetch author name from your database and just echo the author name.

Related Wordpress search:

, , , , , ,

Wordpress related questions and answers: