Class WC_Admin_CPT_Product
WC_Admin_CPT_Product Class
- WC_Admin_CPT
-
WC_Admin_CPT_Product
Package: WooCommerce\Admin\Post
Author: WooThemes
Located at includes/admin/post-types/class-wc-admin-cpt-product.php
Author: WooThemes
Located at includes/admin/post-types/class-wc-admin-cpt-product.php
Methods summary
public
|
|
public
string
|
#
featured_image_gettext( string $string = '' )
Replace 'Featured' when editing a product. Adapted from https://gist.github.com/tw2113/c7fd8da782232ce90176 |
public
array
|
#
media_view_strings( array $strings = array(), object $post = null )
Change "Featured Image" to "Product Image" throughout media modals. |
public
string
|
|
public
|
|
public
|
#
pre_post_update( integer $post_id )
Some functions, like the term recount, require the visibility to be set prior. Lets save that here. |
public
array
|
#
wp_insert_post_data( array $data )
Forces certain product data based on the product's type, e.g. grouped products cannot have a parent. |
public
|
|
public
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
|
|
public
|
|
public
string
|
|
public
array
|
|
public
|
|
public
|
|
public
integer
|
|
public
|
|
public
array
|
|
public
|
#
woocommerce_media_upload_downloadable_product( )
Run a filter when uploading a downloadable product. |
public
string
|
#
ms_protect_download_rewite_rules( mixed $rewrite )
Protect downloads from ms-files.php in multisite |
public
|
#
process_product_file_download_paths( integer $product_id, integer $variation_id, array $downloadable_files )
Grant downloadable file access to any newly added files on any existing orders for this product that have previously been granted downloadable file access |