How to get the current plugin folder url in WordPress?

  • 0

plugin_dir_url( )  function is used to get the current url.

Sample:

$imgurl=plugin_dir_url( __FILE__ ).”placeholder.png”;

plugin_dir_url( )  function is used to get the current url. Sample: $imgurl=plugin_dir_url( __FILE__ ).”placeholder.png”;

plugin_dir_url( )  function is used to get the current url. Sample: $imgurl=plugin_dir_url( __FILE__ ).”placeholder.png”;