includes_url()
は、WordPress の includes ディレクトリへの URL を取得する関数で、デフォルトでは出力はhttp://example.com/wp-includes/
.
コアからの関数のコード:
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);
}
関数を自分のものに置き換えるにはどうすればよいですか (functions.php を使用)。本質的に、2 行目を次のように変更したい —$url = 'http://static-content.com/' . WPINC . '/';