theme_root

Filters the absolute path to the themes directory.

Description

add_filter( 'theme_root', (string) $minileven_theme_root ); 

Parameters (1)

0. $minileven_theme_root (string) => 'minileven_theme_root'
The minileven theme root.

Usage

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

Defined (1)

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

/modules/minileven.php  
  1. add_filter( 'theme_root', 'minileven_theme_root' );