PHP 클래스 WC_Admin_Post_Types

Handles the edit posts views and some functionality on the edit post screen for WC post types.
파일 보기 프로젝트 열기: woocommerce/woocommerce 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) Constructor.
add_custom_query_var ( mixed $public_query_vars ) : array Query vars for custom searches.
bulk_action ( ) Process the new bulk actions for changing order status.
bulk_admin_footer ( ) Add extra bulk action options to mark orders as complete or processing.
bulk_admin_notices ( ) Show confirmation message that order status changed for number of orders.
bulk_and_quick_edit_hook ( integer $post_id, object $post ) Offers a way to hook into save post without causing an infinite loop when quick/bulk saving product info.
bulk_and_quick_edit_save_post ( integer $post_id, WP_Post $post ) : integer Quick and bulk edit saving.
bulk_edit ( mixed $column_name, mixed $post_type ) Custom bulk edit - form.
bulk_edit_save ( integer $post_id, WC_Product $product ) Bulk edit.
bulk_post_updated_messages ( array $bulk_messages, array $bulk_counts ) : array Specify custom bulk actions messages for different post types.
disable_autosave ( ) Disable the auto-save functionality for Orders.
disable_dfw_feature_pointer ( ) Disable DFW feature pointer.
disable_view_mode_options ( array $post_types ) : array Removes products, orders, and coupons from the list of post types that support "View Mode" switching.
edit_form_after_title ( WP_Post $post ) Print coupon description textarea field.
enter_title_here ( string $text, object $post ) : string Change title boxes in admin.
handle_shop_order_bulk_actions ( string $redirect_to, string $action, array $ids ) : string Handle shop order bulk actions.
hidden_meta_boxes ( array $hidden, object $screen ) : array Hidden default Meta-Boxes.
hide_cpt_archive_templates ( $page_templates, $class, $post ) : array When editing the shop page, we should hide templates.
list_table_primary_column ( string $default, string $screen_id ) : string Set list table primary column for products and orders.
maybe_render_blank_state ( $which ) Show blank slate.
post_updated_messages ( array $messages ) : array Change messages when a post type is updated.
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.
product_columns ( array $existing_columns ) : array Define custom columns for products.
product_data_visibility ( ) Output product visibility options.
product_filters ( ) Show a category filter box.
product_filters_query ( mixed $query ) Filter the products in admin based on options.
product_search ( string $where ) : string Search by SKU or ID for products.
product_sortable_columns ( array $columns ) : array Make columns sortable - https://gist.github.com/906872.
product_sorting_link ( array $views ) : array Product sorting link.
quick_edit ( mixed $column_name, mixed $post_type ) Custom quick edit - form.
render_product_columns ( string $column ) Ouput custom columns for products.
render_shop_coupon_columns ( string $column ) Output custom columns for coupons.
render_shop_order_columns ( string $column ) Output custom columns for coupons.
request_query ( array $vars ) : array Filters and sorting handler.
restrict_manage_posts ( ) Filters for post types.
row_actions ( array $actions, WP_Post $post ) : array Set row actions for products and orders.
shop_coupon_columns ( array $existing_columns ) : array Define custom columns for coupons.
shop_coupon_filters ( ) Show custom filters to filter coupons by type.
shop_coupon_sortable_columns ( array $columns ) : array Make columns sortable - https://gist.github.com/906872.
shop_order_bulk_actions ( array $actions ) : array Manipulate shop order bulk actions.
shop_order_columns ( array $existing_columns ) : array Define custom columns for orders.
shop_order_filters ( ) Show custom filters to filter orders by status/customer.
shop_order_search_custom_fields ( WP_Query $wp ) Search custom fields as well as content.
shop_order_search_label ( mixed $query ) : string Change the label when searching orders.
shop_order_sortable_columns ( array $columns ) : array Make columns sortable - https://gist.github.com/906872.
show_cpt_archive_notice ( $post ) Show a notice above the CPT archive.
upload_dir ( array $pathdata ) : array Filter the directory for uploads.
woocommerce_media_upload_downloadable_product ( ) Run a filter when uploading a downloadable product.

비공개 메소드들

메소드 설명
quick_edit_save ( integer $post_id, WC_Product $product ) Quick edit.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( )

add_custom_query_var() 공개 메소드

Query vars for custom searches.
public add_custom_query_var ( mixed $public_query_vars ) : array
$public_query_vars mixed
리턴 array

bulk_action() 공개 메소드

Process the new bulk actions for changing order status.
public bulk_action ( )

bulk_admin_notices() 공개 메소드

Show confirmation message that order status changed for number of orders.
public bulk_admin_notices ( )

bulk_and_quick_edit_hook() 공개 메소드

Offers a way to hook into save post without causing an infinite loop when quick/bulk saving product info.
부터: 2.7.0
public bulk_and_quick_edit_hook ( integer $post_id, object $post )
$post_id integer
$post object

bulk_and_quick_edit_save_post() 공개 메소드

Quick and bulk edit saving.
public bulk_and_quick_edit_save_post ( integer $post_id, WP_Post $post ) : integer
$post_id integer
$post WP_Post
리턴 integer

bulk_edit() 공개 메소드

Custom bulk edit - form.
public bulk_edit ( mixed $column_name, mixed $post_type )
$column_name mixed
$post_type mixed

bulk_edit_save() 공개 메소드

Bulk edit.
public bulk_edit_save ( integer $post_id, WC_Product $product )
$post_id integer
$product WC_Product

bulk_post_updated_messages() 공개 메소드

Specify custom bulk actions messages for different post types.
public bulk_post_updated_messages ( array $bulk_messages, array $bulk_counts ) : array
$bulk_messages array
$bulk_counts array
리턴 array

disable_autosave() 공개 메소드

Disable the auto-save functionality for Orders.
public disable_autosave ( )

disable_dfw_feature_pointer() 공개 메소드

Disable DFW feature pointer.

disable_view_mode_options() 공개 메소드

View mode is seen on posts where you can switch between list or excerpt. Our post types don't support it, so we want to hide the useless UI from the screen options tab.
부터: 2.6
public disable_view_mode_options ( array $post_types ) : array
$post_types array Array of post types supporting view mode
리턴 array Array of post types supporting view mode, without products, orders, and coupons

edit_form_after_title() 공개 메소드

Print coupon description textarea field.
public edit_form_after_title ( WP_Post $post )
$post WP_Post

enter_title_here() 공개 메소드

Change title boxes in admin.
public enter_title_here ( string $text, object $post ) : string
$text string
$post object
리턴 string

handle_shop_order_bulk_actions() 공개 메소드

Handle shop order bulk actions.
부터: 2.7.0
public handle_shop_order_bulk_actions ( string $redirect_to, string $action, array $ids ) : string
$redirect_to string URL to redirect to.
$action string Action name.
$ids array List of ids.
리턴 string

hidden_meta_boxes() 공개 메소드

Hidden default Meta-Boxes.
public hidden_meta_boxes ( array $hidden, object $screen ) : array
$hidden array
$screen object
리턴 array

hide_cpt_archive_templates() 공개 메소드

When editing the shop page, we should hide templates.
public hide_cpt_archive_templates ( $page_templates, $class, $post ) : array
리턴 array

list_table_primary_column() 공개 메소드

Support for WordPress 4.3.
public list_table_primary_column ( string $default, string $screen_id ) : string
$default string
$screen_id string
리턴 string

maybe_render_blank_state() 공개 메소드

Show blank slate.
public maybe_render_blank_state ( $which )

post_updated_messages() 공개 메소드

Change messages when a post type is updated.
public post_updated_messages ( array $messages ) : array
$messages array
리턴 array

process_product_file_download_paths() 공개 메소드

orders for this product that have previously been granted downloadable file access.
사용 중단: and moved to post-data class.
public process_product_file_download_paths ( integer $product_id, integer $variation_id, array $downloadable_files )
$product_id integer product identifier
$variation_id integer optional product variation identifier
$downloadable_files array newly set files

product_columns() 공개 메소드

Define custom columns for products.
public product_columns ( array $existing_columns ) : array
$existing_columns array
리턴 array

product_data_visibility() 공개 메소드

Output product visibility options.

product_filters() 공개 메소드

Show a category filter box.
public product_filters ( )

product_filters_query() 공개 메소드

Filter the products in admin based on options.
public product_filters_query ( mixed $query )
$query mixed

product_sortable_columns() 공개 메소드

Make columns sortable - https://gist.github.com/906872.
public product_sortable_columns ( array $columns ) : array
$columns array
리턴 array

quick_edit() 공개 메소드

Custom quick edit - form.
public quick_edit ( mixed $column_name, mixed $post_type )
$column_name mixed
$post_type mixed

render_product_columns() 공개 메소드

Ouput custom columns for products.
public render_product_columns ( string $column )
$column string

render_shop_coupon_columns() 공개 메소드

Output custom columns for coupons.
public render_shop_coupon_columns ( string $column )
$column string

render_shop_order_columns() 공개 메소드

Output custom columns for coupons.
public render_shop_order_columns ( string $column )
$column string

request_query() 공개 메소드

Filters and sorting handler.
public request_query ( array $vars ) : array
$vars array
리턴 array

restrict_manage_posts() 공개 메소드

Filters for post types.

row_actions() 공개 메소드

Set row actions for products and orders.
public row_actions ( array $actions, WP_Post $post ) : array
$actions array
$post WP_Post
리턴 array

shop_coupon_columns() 공개 메소드

Define custom columns for coupons.
public shop_coupon_columns ( array $existing_columns ) : array
$existing_columns array
리턴 array

shop_coupon_filters() 공개 메소드

Show custom filters to filter coupons by type.
public shop_coupon_filters ( )

shop_coupon_sortable_columns() 공개 메소드

Make columns sortable - https://gist.github.com/906872.
public shop_coupon_sortable_columns ( array $columns ) : array
$columns array
리턴 array

shop_order_bulk_actions() 공개 메소드

Manipulate shop order bulk actions.
public shop_order_bulk_actions ( array $actions ) : array
$actions array List of actions.
리턴 array

shop_order_columns() 공개 메소드

Define custom columns for orders.
public shop_order_columns ( array $existing_columns ) : array
$existing_columns array
리턴 array

shop_order_filters() 공개 메소드

Show custom filters to filter orders by status/customer.
public shop_order_filters ( )

shop_order_search_custom_fields() 공개 메소드

Search custom fields as well as content.
public shop_order_search_custom_fields ( WP_Query $wp )
$wp WP_Query

shop_order_search_label() 공개 메소드

Change the label when searching orders.
public shop_order_search_label ( mixed $query ) : string
$query mixed
리턴 string

shop_order_sortable_columns() 공개 메소드

Make columns sortable - https://gist.github.com/906872.
public shop_order_sortable_columns ( array $columns ) : array
$columns array
리턴 array

show_cpt_archive_notice() 공개 메소드

Show a notice above the CPT archive.
public show_cpt_archive_notice ( $post )

upload_dir() 공개 메소드

Filter the directory for uploads.
public upload_dir ( array $pathdata ) : array
$pathdata array
리턴 array

woocommerce_media_upload_downloadable_product() 공개 메소드

Run a filter when uploading a downloadable product.