PHP 클래스 WC_Meta_Box_Product_Data

파일 보기 프로젝트 열기: woocommerce/woocommerce 1 사용 예제들

공개 메소드들

메소드 설명
output ( WP_Post $post ) Output the metabox.
output_variations ( ) Show options for the variable product type.
prepare_attributes ( $data = false ) : array Prepare attributes for save.
save ( $post_id, $post ) Save meta box data.
save_variations ( integer $post_id, WP_Post $post ) Save meta box data.

비공개 메소드들

메소드 설명
filter_variation_attributes ( WC_Product_Attribute $attribute ) : boolean Filter callback for finding variation attributes.
get_product_data_tabs ( ) : array Return array of tabs to show.
get_product_type_options ( ) : array Return array of product type options.
output_tabs ( ) Show tab content/settings.
prepare_children ( ) : array Prepare children for save.
prepare_downloads ( $file_names, $file_urls, $file_hashes ) : array Prepare downloads for save.
prepare_set_attributes ( array $all_attributes, string $key_prefix = 'attribute_', integer $index = null ) : array Prepare attributes for a specific variation or defaults.

메소드 상세

output() 공개 정적인 메소드

Output the metabox.
public static output ( WP_Post $post )
$post WP_Post

output_variations() 공개 정적인 메소드

Show options for the variable product type.
public static output_variations ( )

prepare_attributes() 공개 정적인 메소드

Prepare attributes for save.
public static prepare_attributes ( $data = false ) : array
리턴 array

save() 공개 정적인 메소드

Save meta box data.
public static save ( $post_id, $post )

save_variations() 공개 정적인 메소드

Save meta box data.
public static save_variations ( integer $post_id, WP_Post $post )
$post_id integer
$post WP_Post