Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

plugin directory wordpress get

// Get the public url path to your wordpress plugin were you are working on
echo plugin_dir_url( __DIR__ );
// returns: https://yourdomain.com/wp-content/plugins/my-plugin/icon.png
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged: #plugin #directory #wordpress
ADD COMMENT
Topic
Name
3+1 =