includes_url

Definition:
function includes_url($path = '') {}

Retrieve the url to the includes directory.

Parameters

  • 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);

}

2007

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:

WordPress.com Logo

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

Facebook photo

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

Connecting to %s

%d bloggers like this: