Answer the question
In order to leave comments, you need to log in
Search products by product id woocommerce?
Tell me a hook or plugin with which you can implement a search on the site by product id. Well, that is, a person enters an ID, for example 1234, and a result is displayed with this product that has this ID
Answer the question
In order to leave comments, you need to log in
Here is the class and method in which you can get the product object by ID
https://docs.woocommerce.com/wc-apidocs/source-cla...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question