Skip to content

Instantly share code, notes, and snippets.

@imran-khan1
Last active July 3, 2019 07:39
Show Gist options
  • Save imran-khan1/b78978f61dab4745c1844ff39fab7aba to your computer and use it in GitHub Desktop.
Save imran-khan1/b78978f61dab4745c1844ff39fab7aba to your computer and use it in GitHub Desktop.
<?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