Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to get plugin directory path in wordpress

$dir = plugin_dir_path( __FILE__ );
// Example: /home/user/var/www/wordpress/wp-content/plugins/my-plugin/
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged: #plugin #directory #path #wordpress
ADD COMMENT
Topic
Name
9+3 =