wcde_filter_get_site_upload_location

Return Blog/ Site upload location.

Description

apply_filters( 'wcde_filter_get_site_upload_location', (unknown) $dir ); 

Parameters (1)

0. $dir (unknown)
The dir.

Usage

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

Defined (1)

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

/includes/wcde-functions.php  
  1. return apply_filters( 'wcde_filter_get_site_upload_location', $dir . '/' );