Class WC_Admin_Duplicate_Product

WC_Admin_Duplicate_Product Class

Package: WooCommerce\Admin
Author: WooThemes
Located at includes/admin/class-wc-admin-duplicate-product.php

Methods summary

public
# __construct( )

Constructor

Constructor

public array
# dupe_link( array $actions, WP_Post $post )

Show the "Duplicate" link in admin products list

Show the "Duplicate" link in admin products list

Parameters

$actions
array
$actions
$post
WP_Post
$post Post object

Returns

array
public
# dupe_button( )

Show the dupe product link in admin

Show the dupe product link in admin

public
# duplicate_product_action( )

Duplicate a product action.

Duplicate a product action.

public integer
# duplicate_product( mixed $post, integer $parent = 0, string $post_status = '' )

Function to create the duplicate of the product.

Function to create the duplicate of the product.

Parameters

$post
mixed
$post
$parent
integer
$parent (default: 0)
$post_status
string
$post_status (default: '')

Returns

integer

Magic methods summary

WooCommerce API documentation generated by ApiGen 2.8.0