@uses WP_POST
This commit is contained in:
parent
dc902ecfed
commit
fef41c149c
|
@ -53,6 +53,7 @@ abstract class WC_Abstract_Order {
|
|||
* Init/load the order object. Called from the constructor.
|
||||
*
|
||||
* @param string|int|WP_POST|WC_Order $order Order to init
|
||||
* @uses WP_POST
|
||||
*/
|
||||
protected function init( $order ) {
|
||||
if ( is_numeric( $order ) ) {
|
||||
|
|
|
@ -25,6 +25,7 @@ class WC_Product {
|
|||
* Constructor gets the post object and sets the ID for the loaded product.
|
||||
*
|
||||
* @param int|WC_Product|WP_Post $product Product ID, post object, or product object
|
||||
* @uses WP_POST
|
||||
*/
|
||||
public function __construct( $product ) {
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@ class WC_Order_Refund extends WC_Abstract_Order {
|
|||
* Init/load the refund object. Called from the contructor.
|
||||
*
|
||||
* @param string|int|WP_Post|WC_Order_Refund $refund Refund to init
|
||||
* @uses WP_POST
|
||||
*/
|
||||
protected function init( $refund ) {
|
||||
if ( is_numeric( $refund ) ) {
|
||||
|
|
|
@ -75,6 +75,7 @@ class WC_Product_Factory {
|
|||
/**
|
||||
* Get the product object
|
||||
* @param mixed $the_product
|
||||
* @uses WP_POST
|
||||
* @return WP_Post|bool false on failure
|
||||
*/
|
||||
private function get_product_object( $the_product ) {
|
||||
|
|
Loading…
Reference in New Issue