@uses WP_POST

This commit is contained in:
Mike Jolley 2015-01-15 14:50:37 +00:00
parent dc902ecfed
commit fef41c149c
4 changed files with 4 additions and 0 deletions

View File

@ -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 ) ) {

View File

@ -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 ) {

View File

@ -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 ) ) {

View File

@ -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 ) {