gde_base_url

Get Default Base URL.

Description

(string) gde_base_url(); 

Returns (string)

Default base URL based on WP settings


Usage

  1. if ( !function_exists( 'gde_base_url' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-doc-embedder/functions-admin.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = gde_base_url(); 
  7.  

Defined (1)

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

/functions-admin.php  
  1. function gde_base_url() { 
  2. if ( ! $baseurl = get_option( 'upload_url_path' ) ) { 
  3. $uploads = wp_upload_dir(); 
  4. $baseurl = $uploads['baseurl']; 
  5.  
  6. return trailingslashit( $baseurl );