Changeset 1456871
- Timestamp:
- 07/19/2016 10:55:05 AM (10 years ago)
- Location:
- wc-pro-conversion-google-facebook-bing/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wc-category-conversion-code.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wc-pro-conversion-google-facebook-bing/trunk/readme.txt
r1398115 r1456871 7 7 Requires at least: 3.8 8 8 9 Tested up to: 4. 4.29 Tested up to: 4.5.3 10 10 11 11 Stable tag: 4.3 … … 81 81 == Changelog == 82 82 83 = 1.4 = 84 * Latest updates : Fix issues with latest version of WC 85 83 86 = 1.3 = 84 87 * Latest updates : Show conversion on woocommerce thank you page. -
wc-pro-conversion-google-facebook-bing/trunk/wc-category-conversion-code.php
r1398106 r1456871 9 9 * Description: WC Pro Conversion allows you to add Facebook Pixel, Google Conversion and Bing Conversion code into your website for the whole shop, specific categories, or even upto the product level. 10 10 11 * Version: 1. 311 * Version: 1.4 12 12 13 13 * Author: WebComers … … 68 68 69 69 // include style and script 70 71 70 add_action( 'admin_enqueue_scripts', array($this, 'wc_admin_print_scripts' ) ); 72 71 73 72 // add fields in add product category page 74 75 73 add_action( 'product_cat_add_form_fields', array($wc_cat_cn, 'wc_cat_cn_code_add_fields' ) ); 76 74 77 75 // save conversion codes fields 78 79 76 add_action( 'create_product_cat', array($wc_cat_cn, 'wc_cat_cn_code_save_fields' ) ); 80 77 81 78 // edit conversion codes fields 82 83 79 add_action( 'edit_product_cat', array($wc_cat_cn, 'wc_cat_cn_code_save_fields' ) ); 84 80 85 81 // add settings menu 86 87 82 add_action('admin_menu', array($this, 'register_cat_cn_code_settings_menu'), 99); 88 83 84 // Edit conversion codes fields 85 add_action( 'product_cat_edit_form_fields', array($wc_cat_cn, 'wc_cat_cn_code_edit_fields' ), 10,2 ); 86 89 87 90 88 91 // Edit conversion codes fields92 93 add_action( 'product_cat_edit_form_fields', array($wc_cat_cn, 'wc_cat_cn_code_edit_fields' ), 10,2 );94 95 96 97 89 // activation hook 98 99 90 register_activation_hook( __FILE__, array($this, 'wc_cat_cn_activated') ); 100 91 101 92 //uninstall hook / delete hook 102 103 93 register_uninstall_hook( __FILE__, array('Wc_Initialize_Conversion_Code', 'wc_cat_cn_uninstall') ); 104 94 … … 107 97 //add_filter( "plugin_action_links_".$this->plugin_name."", 'wc_cat_cn_code_add_settings_link' ); 108 98 109 110 111 99 } 112 100 … … 125 113 public function wc_cat_cn_activated(){ 126 114 127 /* $settings_options = array(128 129 '_product_cn_code' => 1,130 131 '_cat_cn_code' => 2,132 133 '_woocommerce_conversion_default_script' => 3134 135 );136 137 update_option( '_woocommerce_coversion_code_priority', $settings_options );138 139 */140 141 115 update_option( '_wc_conversion_code_diplay_option', 'header' ); 142 116 … … 144 118 145 119 146 120 /* 121 122 * DELETE ALL PLUGIN DATA WHEN DELETING 123 124 */ 147 125 public function wc_cat_cn_uninstall(){ 148 126 … … 242 220 243 221 // initialize plugin 244 245 222 $wc_initialize_cn_code = new Wc_Initialize_Conversion_Code; 246 223 247 224 // load conversion code field for specific products 248 249 225 $wc_product_cn_code = new Wc_Product_Conversion_Code; 250 226
Note: See TracChangeset
for help on using the changeset viewer.