woocommerce_admin_download_permissions_title

The WooCommerce woocommerce admin download permissions title hook.

Description

apply_filters( 'woocommerce_admin_download_permissions_title', (string) $product_get_name, (unknown) $download_get_product_id, (unknown) $download_get_order_id, (unknown) $download_get_order_key, (unknown) $download_get_download_id ); 

Parameters (5)

0. $product_get_name (string)
The product get name.
1. $download_get_product_id (unknown)
The download get product id.
2. $download_get_order_id (unknown)
The download get order id.
3. $download_get_order_key (unknown)
The download get order key.
4. $download_get_download_id (unknown)
The download get download id.

Usage

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

Defined (1)

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

/includes/admin/meta-boxes/views/html-order-download-permission.php  
  1. esc_html( apply_filters( 'woocommerce_admin_download_permissions_title', $product->get_name(), $download->get_product_id(), $download->get_order_id(), $download->get_order_key(), $download->get_download_id() ) ),