update_translations_complete_actions

Filters the list of action links available following a translations update.

Description

apply_filters( 'update_translations_complete_actions', (array) $update_actions ); 

Parameters (1)

0. $update_actions (array)
Array of translations update links.

Usage

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

Defined (1)

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

/wp-admin/includes/class-language-pack-upgrader-skin.php  
  1. $update_actions = apply_filters( 'update_translations_complete_actions', $update_actions );