関数 plugin_dir_url()
定義ファイル :/blog/wp-includes/plugin.php
plugin_dir_url()
1 2 3 4 5 6 7 8 9 10 11 | /** * Get the URL directory path (with trailing slash) for the plugin __FILE__ passed in. * * @since 2.8.0 * * @param string $file The filename of the plugin (__FILE__). * @return string the URL path of the directory that contains the plugin. */ function plugin_dir_url( $file ) { return trailingslashit( plugins_url( '', $file ) ); } |