Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: includes_url

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1788  * @param string $path Optional. Path relative to the includes url.
1789  * @return string Includes url link with optional path appended.
1790 */
1791 function includes_url($path = '') {
1792      $url = site_url() . '/' . WPINC . '/';
1793
1794      if ( !empty($path) && is_string($path) && strpos($path, '..') === false )
1795           $url .= ltrim($path, '/');
1796
1797      return apply_filters('includes_url', $url, $path);
1798 }
1799
1800 /**
1801  * Retrieve the url to the content directory.
1802  *
1803  * @package WordPress
1804  * @since 2.6.0
1805  *
1806  * @param string $path Optional. Path relative to the content url.