manage_edit-shop_order_columns

The WordPress Core manage edit shop order columns hook.

Description

add_filter( 'manage_edit-shop_order_columns', (unknown) $fortnox_plugin, (string) $addorderstablecolumns ); 

Parameters (2)

0. $fortnox_plugin (unknown) => [ "Fortnox\Plugin"
The fortnox plugin.
1. $addorderstablecolumns (string) => "addOrdersTableColumns" ]
The addorderstablecolumns.

Usage

To run the hook, copy the example below.
  1. $fortnox_plugin = apply_filters( 'manage_edit-shop_order_columns', $fortnox_plugin, $addorderstablecolumns ); 
  2.  
  3. if ( !empty( $fortnox_plugin ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the manage_edit-shop_order_columns callback 
  2. function filter_manage_edit_shop_order_columns( $fortnox_plugin, $addorderstablecolumns ) { 
  3. // make filter magic happen here... 
  4. return $fortnox_plugin
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'manage_edit-shop_order_columns', 'filter_manage_edit_shop_order_columns', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'manage_edit-shop_order_columns', 'filter_manage_edit_shop_order_columns', 10, 2 ); 

Defined (1)

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

/plugin.php  
  1. add_filter( 'manage_edit-shop_order_columns', [ "Fortnox\Plugin", "addOrdersTableColumns" ] );