tgmpa_admin_menu_args

The Onetone tgmpa admin menu args hook.

Description

apply_filters( 'tgmpa_admin_menu_args', (callback) $array ); 

Parameters (1)

0. $array — Optional. (callback) => array( 'parent_slug' => $this->parent_slug, 'page_title' => $this->strings['page_title'], 'menu_title' => $this->strings['menu_title'], 'capability' => $this->capability, 'menu_slug' => $this->menu, 'function' => array( $this, 'install_plugins_page' ), )
The array.

Usage

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

Defined (1)

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

/includes/class-tgm-plugin-activation.php  
  1. $args = apply_filters(