function includes_url($path = '') {}

Retrieve the url to the includes directory.


  • string $path: Optional. Path relative to the includes url.

Return values

returns:Includes url link with optional path appended.

Defined filters

  • includes_url
    apply_filters('includes_url', $url, $path)

Source code

function includes_url($path = '') {

	$url = site_url() . '/' . WPINC . '/';

	if ( !empty($path) && is_string($path) && strpos($path, '..') === false )

		$url .= ltrim($path, '/');

	return apply_filters('includes_url', $url, $path);



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: