Class WC_Admin_CPT_Shop_Order

WC_Admin_CPT_Shop_Order Class

WC_Admin_CPT
Extended by WC_Admin_CPT_Shop_Order
Package: WooCommerce\Admin\Post
Author: WooThemes
Located at includes/admin/post-types/class-wc-admin-cpt-shop_order.php

Methods summary

public
# __construct( )

Constructor

Constructor

Overrides

WC_Admin_CPT::__construct
public array
# wp_insert_post_data( array $data )

Forces the order posts to have a title in a certain format (containing the date)

Forces the order posts to have a title in a certain format (containing the date)

Parameters

$data
array
$data

Returns

array
public
# edit_columns( mixed $existing_columns )

Change the columns shown in admin.

Change the columns shown in admin.

public
# custom_columns( string $column )

Define our custom columns shown in admin.

Define our custom columns shown in admin.

Parameters

$column
string
$column
public array
# custom_order_views( mixed $views )

Filters for the order page.

Filters for the order page.

Parameters

$views
mixed
$views

Returns

array
public array
# bulk_actions( mixed $actions )

Remove edit from the bulk actions.

Remove edit from the bulk actions.

Parameters

$actions
mixed
$actions

Returns

array
public array
# remove_row_actions( mixed $actions )

Actions for the orders page.

Actions for the orders page.

Parameters

$actions
mixed
$actions

Returns

array
public
# restrict_manage_orders( )

Show custom filters to filter orders by status/customer.

Show custom filters to filter orders by status/customer.

public array
# orders_by_customer_query( mixed $vars )

Filter the orders by the posted customer.

Filter the orders by the posted customer.

Parameters

$vars
mixed
$vars

Returns

array
public array
# custom_shop_order_sort( mixed $columns )

Make order columns sortable.

Make order columns sortable.

https://gist.github.com/906872

Parameters

$columns
mixed
$columns

Returns

array
public array
# custom_shop_order_orderby( mixed $vars )

Order column orderby/request.

Order column orderby/request.

Parameters

$vars
mixed
$vars

Returns

array
public
# shop_order_search_custom_fields( WP_Query $wp )

Search custom fields as well as content.

Search custom fields as well as content.

Parameters

$wp
WP_Query
$wp
public string
# shop_order_search_label( mixed $query )

Change the label when searching orders.

Change the label when searching orders.

Parameters

$query
mixed
$query

Returns

string
public array
# add_custom_query_var( mixed $public_query_vars )

Query vars for custom searches.

Query vars for custom searches.

Parameters

$public_query_vars
mixed
$public_query_vars

Returns

array
public
# delete_order_items( mixed $postid )

Remove item meta on permanent deletion

Remove item meta on permanent deletion

public
# bulk_admin_footer( )

Add extra bulk action options to mark orders as complete or processing

Add extra bulk action options to mark orders as complete or processing

Using Javascript until WordPress core fixes: http://core.trac.wordpress.org/ticket/16031

public
# bulk_action( )

Process the new bulk actions for changing order status

Process the new bulk actions for changing order status

public
# bulk_admin_notices( )

Show confirmation message that order status changed for number of orders

Show confirmation message that order status changed for number of orders

Methods inherited from WC_Admin_CPT

change_insert_into_post()

Magic methods summary

Properties summary

Properties inherited from WC_Admin_CPT

$type

WooCommerce API documentation generated by ApiGen 2.8.0