68669/how-to-get-the-current-plugin-directory-in-wordpress
I need to get the current plugin directory like
[wordpress_install_dir]/wp-content/plugins/plugin_name
(if getcwd() called from the plugin, it returns [wordpress_install_dir], the root of installation)
thanks for help
Hello @kartik,
This will actually get the result you want:
<?php plugin_dir_url(__FILE__); ?>
Hope this works!!
Thank you!
Hello, Here is a code sample of a good ...READ MORE
Hii, The easiest way to do this: class MyController ...READ MORE