Method | Description | |
---|---|---|
__construct ( ) | Constructor. | |
dupe_button ( ) | Show the dupe product link in admin. | |
dupe_link ( array $actions, WP_Post $post ) : array | Show the "Duplicate" link in admin products list. | |
duplicate_product ( mixed $post, integer $parent, string $post_status = '' ) : integer | Function to create the duplicate of the product. | |
duplicate_product_action ( ) | Duplicate a product action. |
Method | Description | |
---|---|---|
duplicate_post_meta ( mixed $id, mixed $new_id ) | Copy the meta information of a post to another post. | |
duplicate_post_taxonomies ( mixed $id, mixed $new_id, mixed $post_type ) | Copy the taxonomies of a post to another post. | |
get_product_to_duplicate ( mixed $id ) : WP_Post | boolean | Get a product from the database to duplicate. |
public duplicate_product_action ( ) |