manage_shop_order_posts_custom_column

The WordPress Core manage shop order posts custom column hook.

Description

add_action( 'manage_shop_order_posts_custom_column', (callback) $array, (int) $int ); 

Parameters (2)

0. $array (callback) => array( $this, 'render_shop_order_columns' )
The array.
1. $int (int) => 2
The int.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'manage_shop_order_posts_custom_column', $array, $int ); 
The following example is for adding a hook callback.
  1. // define the manage_shop_order_posts_custom_column callback 
  2. function action_manage_shop_order_posts_custom_column( $array, $int ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'manage_shop_order_posts_custom_column', 'action_manage_shop_order_posts_custom_column', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'manage_shop_order_posts_custom_column', 'action_manage_shop_order_posts_custom_column', 10, 2 ); 

Defined (1)

The action is defined in the following location(s).

/includes/admin/class-wc-admin-post-types.php  
  1. add_action( 'manage_shop_order_posts_custom_column', array( $this, 'render_shop_order_columns' ), 2 );