Last active
July 3, 2019 07:39
-
-
Save imran-khan1/b78978f61dab4745c1844ff39fab7aba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Woo IK Manufacturer | |
Plugin URI: http://codeinform.com/custom-woocommerce-plugin-development/ | |
Description: Product Manufacturer. | |
Author: Imran Khan | |
Version: 1.2 | |
Author URI: http://codeinform.com/ | |
License: GPL2 | |
*/ | |
// don't call the file directly | |
if ( ! defined( 'ABSPATH' ) ) exit; | |
//Check if WooCommerce is active | |
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { | |
//Admin Files | |
require_once ( plugin_dir_path( __FILE__ ) . '/include/admin/post_type.php' ); | |
require_once ( plugin_dir_path( __FILE__ ) . '/include/admin/meta_box.php' ); | |
require_once ( plugin_dir_path( __FILE__ ) . '/include/admin/add_column.php' ); | |
//Frontend Files | |
require_once ( plugin_dir_path( __FILE__ ) . '/include/product-detail.php' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment