plugin_dir_path [ WordPress Function ]
plugin_dir_path ( $file )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Gets the filesystem directory path (with trailing slash) for the plugin __FILE__ passed in
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/plugin dir path « WordPress Codex
Description. Gets the filesystem directory path (with trailing slash) for the plugin __FILE__ passed in. Usage. <?php plugin_dir_path( $file ); ?> Parameters ...
codex.wordpress.org - Properly get your Plugin's Path and URL - Better WordPress
Feb 24, 2011 ... Yet another two undocumented WordPress functions that can help you tremendously when writing a plugin or theme.
betterwp.net - Plugin_dir_path | WP Code Snippets
May 28, 2011 ... Recently, I was working on a plugin that needed to extract the first and last names of the site admin on which the plugin was activated.
wpcodesnippets.info - How to get the current plugin directory in Wordpress? - Stack Overflow
@TomAuger plugin_dir_path( $file ) is merely a wrapper for trailingslashit( dirname( $file ) ) - I would argue it's no more "future proof" than mine; ...
stackoverflow.com