Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to get plugin directory path in wordpress

foreach ( glob( plugin_dir_path( __FILE__ ) . "subfolder/*.php" ) as $file ) {
    include_once $file;
}
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged: #plugin #directory #path #wordpress
ADD COMMENT
Topic
Name
6+6 =