Answers for "path function woocommerce"

PHP
1

how to get plugin directory path in wordpress

if ( is_admin() ) {
    include_once( plugin_dir_path( __FILE__ ) . 'includes/admin-functions.php' );
} else {
    include_once( plugin_dir_path( __FILE__ ) . 'includes/front-end-functions.php' );
}
Posted by: Guest on October-22-2020
1

how to get plugin directory path in wordpress

define( 'MY_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
include( MY_PLUGIN_PATH . 'includes/admin-page.php');
include( MY_PLUGIN_PATH . 'includes/classes.php');
// etc.
Posted by: Guest on October-22-2020

Code answers related to "path function woocommerce"

Browse Popular Code Answers by Language