installer_theme_get_themes

The WooCommerce Multilingual installer theme get themes hook.

Description

apply_filters( 'installer_theme_get_themes', (unknown) $themes, (unknown) $this_installer_theme_active_tab ); 

Parameters (2)

0. $themes (unknown)
The themes.
1. $this_installer_theme_active_tab (unknown)
The this installer theme active tab.

Usage

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

Defined (1)

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

/vendor/otgs/installer/includes/class-installer-theme.php  
  1. return apply_filters( 'installer_theme_get_themes', $themes, $this->installer_theme_active_tab );