includes_url

The WordPress Core includes url function.

Description

includes_url(); 

Usage

  1. if ( !function_exists( 'includes_url' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/noop.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = includes_url(); 
  7.  

Defined (2)

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

/wp-admin/includes/noop.php  
  1. function includes_url() {} 
/wp-includes/link-template.php  
  1. function includes_url( $path = '', $scheme = null ) { 
  2. $url = site_url( '/' . WPINC . '/', $scheme ); 
  3.  
  4. if ( $path && is_string( $path ) ) 
  5. $url .= ltrim($path, '/'); 
  6.  
  7. /** 
  8. * Filters the URL to the includes directory. 
  9. * @since 2.8.0 
  10. * @param string $url The complete URL to the includes directory including scheme and path. 
  11. * @param string $path Path relative to the URL to the wp-includes directory. Blank string 
  12. * if no path is specified. 
  13. */ 
  14. return apply_filters( 'includes_url', $url, $path );