Version Description
- April 4th, 2017 =
- Tested and updated the plugin for WooCommerce v3.0.0
Download this release
Release Info
Developer | yikesitskevin |
Plugin | Custom Product Tabs for WooCommerce |
Version | 1.5.9 |
Comparing to | |
See all releases |
Code changes from version 1.5.8 to 1.5.9
admin/page.yikes-woo-saved-tabs-single.php
CHANGED
@@ -72,28 +72,27 @@ $number_of_products_using_this_tab = count( $products );
|
|
72 |
</span>
|
73 |
</div>
|
74 |
</div>
|
75 |
-
|
76 |
-
|
77 |
-
<
|
78 |
-
|
79 |
-
|
80 |
-
<p>
|
81 |
This tab is currently not used for any products.
|
82 |
-
</p>
|
83 |
-
<?php
|
84 |
-
$plural_product_name = ( $number_of_products_using_this_tab > 1 ) ? 'products' : 'product';
|
85 |
-
?>
|
86 |
-
<p>
|
87 |
-
This tab is currently used on <span class="yikes_woo_number_of_products"><?php echo $number_of_products_using_this_tab; ?></span> <?php echo $plural_product_name ?>
|
88 |
-
</p>
|
89 |
-
<?php foreach( $products as $product_id ) { ?>
|
90 |
-
<p>
|
91 |
-
<?php $edit_product_url = add_query_arg( array( 'post' => $product_id, 'action' => 'edit' ), esc_url_raw( 'post.php' ) ); ?>
|
92 |
-
<span> <a href="<?php echo $edit_product_url ?>"> <?php echo get_the_title( $product_id ); ?> </a> </span>
|
93 |
-
</p>
|
94 |
-
<?php } ?>
|
95 |
-
<?php } ?>
|
96 |
-
</div>
|
97 |
-
</div>
|
98 |
</div>
|
99 |
</div>
|
72 |
</span>
|
73 |
</div>
|
74 |
</div>
|
75 |
+
<!-- <div class="yikes_woo_saved_tab_products"> -->
|
76 |
+
<!-- <h3 class="yikes_woo_saved_tab_header">Products</h3> -->
|
77 |
+
<!-- <div class="inside entry-details-overview"> -->
|
78 |
+
<!-- <?php // if ( $number_of_products_using_this_tab === 0 ) { ?> -->
|
79 |
+
<!-- <p>
|
|
|
80 |
This tab is currently not used for any products.
|
81 |
+
</p> -->
|
82 |
+
<!-- <?php// } else {
|
83 |
+
/* $plural_product_name = ( $number_of_products_using_this_tab > 1 ) ? 'products' : 'product'; */
|
84 |
+
?> -->
|
85 |
+
<!-- <p> -->
|
86 |
+
<!-- This tab is currently used on <span class="yikes_woo_number_of_products"><?php // echo $number_of_products_using_this_tab; ?></span> <?php // echo $plural_product_name ?> -->
|
87 |
+
<!-- </p> -->
|
88 |
+
<!-- <?php // foreach( $products as $product_id ) { ?> -->
|
89 |
+
<!-- <p> -->
|
90 |
+
<!-- <?php /* $edit_product_url = add_query_arg( array( 'post' => $product_id, 'action' => 'edit' ), esc_url_raw( 'post.php' ) ); */ ?> -->
|
91 |
+
<!-- <span> <a href="<?php // echo $edit_product_url ?>"> <?php // echo get_the_title( $product_id ); ?> </a> </span> -->
|
92 |
+
<!-- </p> -->
|
93 |
+
<!-- <?php // } ?> -->
|
94 |
+
<!-- <?php // } ?> -->
|
95 |
+
<!-- </div> -->
|
96 |
+
<!-- </div> -->
|
97 |
</div>
|
98 |
</div>
|
css/repeatable-custom-tabs.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.yikes_woo_tabs_title_field {
|
2 |
position: absolute;
|
3 |
right: 1em;
|
4 |
top: 12px;
|
5 |
border-top: 1px solid #a0a5aa;
|
6 |
width: 100%;
|
7 |
white-space: nowrap;
|
8 |
max-width: 79%;
|
9 |
max-width: 100%;
|
|
|
10 |
position: absolute;
|
11 |
right: 1em;
|
12 |
top: 12px;
|
13 |
border-top: 1px solid #a0a5aa;
|
14 |
width: 100%;
|
15 |
white-space: nowrap;
|
16 |
max-width: 79%;
|
17 |
max-width: 100%;
|
|
|
1 |
position: absolute;
|
2 |
right: 1em;
|
3 |
top: 12px;
|
4 |
border-top: 1px solid #a0a5aa;
|
5 |
width: 100%;
|
6 |
white-space: nowrap;
|
7 |
max-width: 79%;
|
8 |
max-width: 100%;
|
9 |
+
.yikes_woo_tabs_title_field {
|
10 |
position: absolute;
|
11 |
right: 1em;
|
12 |
top: 12px;
|
13 |
border-top: 1px solid #a0a5aa;
|
14 |
width: 100%;
|
15 |
white-space: nowrap;
|
16 |
max-width: 79%;
|
17 |
max-width: 100%;
|
css/repeatable-custom-tabs.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.yikes_woo_tabs_title_field{width:70%!important}#duplicate_this_row{display:none}a[href="#yikes_woocommerce_custom_product_tabs"]:before{font-family:yikes-woo-font!important;content:"\e600"!important;font-size:15px!important;display:block;float:left;margin-top:2px}#yikes_woocommerce_custom_product_tabs hr{margin:1.5em 0}#yikes_woocommerce_custom_product_tabs .options_group{padding:0 1em}#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel div.form-field-tinymce,#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel p.form-field,#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel p.form-field-tinymce{max-width:85%;padding-left:0}#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel p.form-field{padding:5px 0!important}#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel .form-field label{font-size:1.1em;font-weight:700;margin:2px 8px 0 0;width:auto}.yikes-woo-custom-tab-divider{display:block;height:2px;margin:2em 0 1.5em;border-bottom:1px solid #0073aa}.yikes-custom-wysiwyg-label{margin-left:1em;line-height:3}.yikes-logo{position:absolute;top:0;right:0;margin-top:.75em;margin-right:.75em;opacity:.85}#yikes-woo-tabs-review-us{float:right}.yikes-woo-tabs-hidden-how-to-info{display:none;font-family:"Open Sans",sans-serif!important;margin-right:30px}.woocommerce_options_panel p.yikes_woo_how_to_info{margin:9px 0 0;padding:0;text-align:right}.yikes-tabs-how-to-toggle{font-size:20px;position:absolute;right:1em;top:12px}.yikes-tabs-how-to-toggle:hover{cursor:pointer}.move-tab-data-down,.move-tab-data-up{font-size:25px;transition:color .2s}.move-tab-data-down:hover,.move-tab-data-up:hover{cursor:pointer;color:#4c9cce}.button-holder{margin-top:-190px;position:absolute;right:1em;width:110px}.yikes_wc_move_tab_container{margin-top:.5em;text-align:center}.woocommerce_options_panel p.yikes_wc_move_tab{line-height:1;margin:0;padding:0}.button-holder .button-secondary.remove_this_tab{background:#e35b5b;border-color:#dc3232;box-shadow:0 1px 0 #dc3232;color:#fff;cursor:pointer;margin-top:20px}.button-holder .button-secondary.remove_this_tab .dashicons{margin-top:-2px;vertical-align:middle}@font-face{font-family:yikes-woo-font;src:url(./font/yikes-woo-font.eot?-394dt5);src:url(./font/yikes-woo-font.eot?#iefix-394dt5) format('embedded-opentype'),url(./font/yikes-woo-font.woff?-394dt5) format('woff'),url(./font/yikes-woo-font.ttf?-394dt5) format('truetype'),url(./font/yikes-woo-font.svg?-394dt5#yikes-woo-font) format('svg');font-weight:400;font-style:normal}[class*=" yikes-woo-"],[class^=yikes-woo-]{font-family:yikes-woo-font;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.yikes-woo-uniE600:before{content:"\e600"}.loading-wp-editor-gif{margin-left:50%;margin-right:50%}.loading-wp-editor-gif-settings{padding-left:50px}.dashicons.inline-button-dashicons{font-size:15px;vertical-align:bottom}.yikes_woo_save_success{color:#31843f;float:left;padding-top:1em}._yikes_wc_add_tab_center,.add_tabs_container{border-top:1px solid #a0a5aa;margin:2em 2px 0 0;text-align:right;width:100%}.add_tabs_container .button.button-primary{margin-top:10px}._yikes_wc_add_tab_center{border-top:none;text-align:center}#_yikes_wc_apply_a_saved_tab,#add_another_tab{background:#cc99c2;border-color:#b366a4;color:#fff;text-decoration:none!important}.add_tabs_container._yikes_wc_add_tab_center_new .button.button-primary{display:none}#add_another_tab{-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15);margin-bottom:10px;margin-top:10px}#_yikes_wc_apply_a_saved_tab{-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15);margin:10px 0 0 8px}._yikes_wc_feedback_message{display:none;padding-left:3px}#yikes_woo_tab_error_message{color:red}#yikes_woo_tab_success_message{color:#31843f;margin-top:4px}.yikes_woo_how_to_h3{padding-left:10px;margin-top:0;font-weight:700}.yikes_woo_how_to_info,.yikes_woo_how_to_note{padding-left:23px!important}.yikes_woo_how_to_note{font-style:italic}.yikes-tabs-how-to-toggle-cursor{cursor:pointer}.yikes_woo_settings_info{font-family:"Open Sans",sans-serif}.yikes_woo_using_reusable_tab{opacity:.6;pointer-events:none}.lity-container{background:#fff;border-radius:6px;padding:.6em 1em 1em}.lity-container .lity-content::after{box-shadow:none}[class*=yikes_wc_lity_col]{float:left}.yikes_wc_lity_col_title{width:93%;padding:4px 20px 4px 2px;white-space:nowrap}.yikes_wc_lity_col_select{width:7%;padding-right:8px;padding-top:4px;cursor:pointer}.yikes_wc_lity_header{border-bottom:1px solid #555d66;margin-bottom:.4em;line-height:1;font-size:1.2em;font-weight:700;padding:0 0 8px;text-align:center;width:100%}.yikes_wc_lity_header>span{width:100px;text-align:center;white-space:nowrap}.display_saved_tabs_lity{min-width:300px}.yikes_woo_delete_this_tab{color:#0073aa;cursor:pointer}.yikes_woo_delete_this_tab:hover{color:#00a0d2}.yikes_woo_reusable_tab_title>input{width:100%}.yikes_woo_reusable_tab_content>label h3,.yikes_woo_reusable_tab_title>label h3{margin-bottom:6px}.yikes_woo_reusable_tab_content,.yikes_woo_reusable_tab_title{margin-bottom:20px}.wp-core-ui .button-secondary.yikes_woo_delete_this_tab{background:#e35b5b;border-color:#dc3232;box-shadow:0 1px 0 #dc3232;color:#fff;cursor:pointer}.yikes_woo_add_another_tab:hover>a{color:#fff}.yikes_woo_number_of_products{font-weight:700}.yikes_woo_save_and_delete_tab_buttons{margin-top:10px}._yikes_wc_title_red_overlay{background-color:#e68989!important}.woocommerce_options_panel p.yikes_wc_override_reusable_tab_container{line-height:1.1;margin-top:0;position:absolute;right:1em}.woocommerce_options_panel label._yikes_wc_override_reusable_tab_label{margin:2px 0 0 4px;float:none}@media screen and (max-width:1500px){#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel div.form-field-tinymce,#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel p.form-field,#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel p.form-field-tinymce{max-width:79%}.woocommerce_options_panel p.yikes_wc_override_reusable_tab_container{max-width:100px}}@media screen and (max-width:1300px){.button-holder{margin-top:8px;position:relative;right:auto;text-align:center;width:100%}.woocommerce_options_panel p.yikes_wc_move_tab,.yikes_wc_move_tab_container{display:inline-block}.move-tab-data-down,.move-tab-data-up{margin-top:-5px}.button-holder .button-secondary.remove_this_tab{margin-left:26px;margin-top:0}#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel div.form-field-tinymce,#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel p.form-field,#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel p.form-field-tinymce{max-width:100%}.woocommerce_options_panel p.yikes_wc_override_reusable_tab_container{margin-bottom:0;max-width:100%;position:relative}#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel p.yikes_woo_using_reusable_tab{margin-top:0}}
|
1 |
+
.yikes_woo_tabs_title_field{width:70%!important}#duplicate_this_row{display:none}a[href="#yikes_woocommerce_custom_product_tabs"]:before{font-family:yikes-woo-font!important;content:"\e600"!important;font-size:15px!important;display:block;float:left;margin-top:2px;margin-right:8px}#yikes_woocommerce_custom_product_tabs hr{margin:1.5em 0}#yikes_woocommerce_custom_product_tabs .options_group{padding:0 1em}#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel div.form-field-tinymce,#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel p.form-field,#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel p.form-field-tinymce{max-width:85%;padding-left:0}#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel p.form-field{padding:5px 0!important}#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel .form-field label{font-size:1.1em;font-weight:700;margin:2px 8px 0 0;width:auto}.yikes-woo-custom-tab-divider{display:block;height:2px;margin:2em 0 1.5em;border-bottom:1px solid #0073aa}.yikes-custom-wysiwyg-label{margin-left:1em;line-height:3}.yikes-logo{position:absolute;top:0;right:0;margin-top:.75em;margin-right:.75em;opacity:.85}#yikes-woo-tabs-review-us{float:right}.yikes-woo-tabs-hidden-how-to-info{display:none;font-family:"Open Sans",sans-serif!important;margin-right:30px}.woocommerce_options_panel p.yikes_woo_how_to_info{margin:9px 0 0;padding:0;text-align:right}.yikes-tabs-how-to-toggle{font-size:20px;position:absolute;right:1em;top:12px}.yikes-tabs-how-to-toggle:hover{cursor:pointer}.move-tab-data-down,.move-tab-data-up{font-size:25px;transition:color .2s}.move-tab-data-down:hover,.move-tab-data-up:hover{cursor:pointer;color:#4c9cce}.button-holder{margin-top:-190px;position:absolute;right:1em;width:110px}.yikes_wc_move_tab_container{margin-top:.5em;text-align:center}.woocommerce_options_panel p.yikes_wc_move_tab{line-height:1;margin:0;padding:0}.button-holder .button-secondary.remove_this_tab{background:#e35b5b;border-color:#dc3232;box-shadow:0 1px 0 #dc3232;color:#fff;cursor:pointer;margin-top:20px}.button-holder .button-secondary.remove_this_tab .dashicons{margin-top:-2px;vertical-align:middle}@font-face{font-family:yikes-woo-font;src:url(./font/yikes-woo-font.eot?-394dt5);src:url(./font/yikes-woo-font.eot?#iefix-394dt5) format('embedded-opentype'),url(./font/yikes-woo-font.woff?-394dt5) format('woff'),url(./font/yikes-woo-font.ttf?-394dt5) format('truetype'),url(./font/yikes-woo-font.svg?-394dt5#yikes-woo-font) format('svg');font-weight:400;font-style:normal}[class*=" yikes-woo-"],[class^=yikes-woo-]{font-family:yikes-woo-font;speak:none;font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.yikes-woo-uniE600:before{content:"\e600"}.loading-wp-editor-gif{margin-left:50%;margin-right:50%}.loading-wp-editor-gif-settings{padding-left:50px}.dashicons.inline-button-dashicons{font-size:15px;vertical-align:bottom}.yikes_woo_save_success{color:#31843f;float:left;padding-top:1em}._yikes_wc_add_tab_center,.add_tabs_container{border-top:1px solid #a0a5aa;margin:2em 2px 0 0;text-align:right;width:100%}.add_tabs_container .button.button-primary{margin-top:10px}._yikes_wc_add_tab_center{border-top:none;text-align:center}#_yikes_wc_apply_a_saved_tab,#add_another_tab{background:#cc99c2;border-color:#b366a4;color:#fff;text-decoration:none!important}.add_tabs_container._yikes_wc_add_tab_center_new .button.button-primary{display:none}#add_another_tab{-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15);margin-bottom:10px;margin-top:10px}#_yikes_wc_apply_a_saved_tab{-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15);margin:10px 0 0 8px}._yikes_wc_feedback_message{display:none;padding-left:3px}#yikes_woo_tab_error_message{color:red}#yikes_woo_tab_success_message{color:#31843f;margin-top:4px}.yikes_woo_how_to_h3{padding-left:10px;margin-top:0;font-weight:700}.yikes_woo_how_to_info,.yikes_woo_how_to_note{padding-left:23px!important}.yikes_woo_how_to_note{font-style:italic}.yikes-tabs-how-to-toggle-cursor{cursor:pointer}.yikes_woo_settings_info{font-family:"Open Sans",sans-serif}.yikes_woo_using_reusable_tab{opacity:.6;pointer-events:none}.lity-container{background:#fff;border-radius:6px;padding:.6em 1em 1em}.lity-container .lity-content::after{box-shadow:none}[class*=yikes_wc_lity_col]{float:left}.yikes_wc_lity_col_title{width:93%;padding:4px 20px 4px 2px;white-space:nowrap}.yikes_wc_lity_col_select{width:7%;padding-right:8px;padding-top:4px;cursor:pointer}.yikes_wc_lity_header{border-bottom:1px solid #555d66;margin-bottom:.4em;line-height:1;font-size:1.2em;font-weight:700;padding:0 0 8px;text-align:center;width:100%}.yikes_wc_lity_header>span{width:100px;text-align:center;white-space:nowrap}.display_saved_tabs_lity{min-width:300px}.yikes_woo_delete_this_tab{color:#0073aa;cursor:pointer}.yikes_woo_delete_this_tab:hover{color:#00a0d2}.yikes_woo_reusable_tab_title>input{width:100%}.yikes_woo_reusable_tab_content>label h3,.yikes_woo_reusable_tab_title>label h3{margin-bottom:6px}.yikes_woo_reusable_tab_content,.yikes_woo_reusable_tab_title{margin-bottom:20px}.wp-core-ui .button-secondary.yikes_woo_delete_this_tab{background:#e35b5b;border-color:#dc3232;box-shadow:0 1px 0 #dc3232;color:#fff;cursor:pointer}.yikes_woo_add_another_tab:hover>a{color:#fff}.yikes_woo_number_of_products{font-weight:700}.yikes_woo_save_and_delete_tab_buttons{margin-top:10px}._yikes_wc_title_red_overlay{background-color:#e68989!important}.woocommerce_options_panel p.yikes_wc_override_reusable_tab_container{line-height:1.1;margin-top:0;position:absolute;right:1em}.woocommerce_options_panel label._yikes_wc_override_reusable_tab_label{margin:2px 0 0 4px;float:none}@media screen and (max-width:1500px){#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel div.form-field-tinymce,#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel p.form-field,#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel p.form-field-tinymce{max-width:79%}.woocommerce_options_panel p.yikes_wc_override_reusable_tab_container{max-width:100px}}@media screen and (max-width:1300px){.button-holder{margin-top:8px;position:relative;right:auto;text-align:center;width:100%}.woocommerce_options_panel p.yikes_wc_move_tab,.yikes_wc_move_tab_container{display:inline-block}.move-tab-data-down,.move-tab-data-up{margin-top:-5px}.button-holder .button-secondary.remove_this_tab{margin-left:26px;margin-top:0}#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel div.form-field-tinymce,#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel p.form-field,#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel p.form-field-tinymce{max-width:100%}.woocommerce_options_panel p.yikes_wc_override_reusable_tab_container{margin-bottom:0;max-width:100%;position:relative}#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel p.yikes_woo_using_reusable_tab{margin-top:0}}
|
readme.txt
CHANGED
@@ -5,8 +5,8 @@ Tags: woocommerce, product tabs, repeatable, duplicate, customize, custom, tabs,
|
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.7.3
|
7 |
Requires WooCommerce at least: 2.0
|
8 |
-
Tested WooCommerce up to:
|
9 |
-
Stable tag: 1.5.
|
10 |
License: GPLv2 or later
|
11 |
|
12 |
Add custom tabs with content to products in WooCommerce.
|
@@ -74,6 +74,9 @@ Yes! Since v1.4 we've added the necessary code to ensure the custom tab data is
|
|
74 |
|
75 |
== Changelog ==
|
76 |
|
|
|
|
|
|
|
77 |
= 1.5.8 - March 17th, 2017 =
|
78 |
* Replaced the saved tab's ID w/ an "Add New" button on the single saved tab page - it should be easier to add saved tabs in bulk now
|
79 |
* Added a filter for all of the custom tab content - it should allow you to apply custom logic such as permissions in one central location
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.7.3
|
7 |
Requires WooCommerce at least: 2.0
|
8 |
+
Tested WooCommerce up to: 3.0.0
|
9 |
+
Stable tag: 1.5.9
|
10 |
License: GPLv2 or later
|
11 |
|
12 |
Add custom tabs with content to products in WooCommerce.
|
74 |
|
75 |
== Changelog ==
|
76 |
|
77 |
+
= 1.5.9 - April 4th, 2017 =
|
78 |
+
* Tested and updated the plugin for WooCommerce v3.0.0
|
79 |
+
|
80 |
= 1.5.8 - March 17th, 2017 =
|
81 |
* Replaced the saved tab's ID w/ an "Add New" button on the single saved tab page - it should be easier to add saved tabs in bulk now
|
82 |
* Added a filter for all of the custom tab content - it should allow you to apply custom logic such as permissions in one central location
|
yikes-inc-easy-custom-woocommerce-product-tabs.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Extend WooCommerce to add and manage custom product tabs. Create as many product tabs as needed per product.
|
6 |
* Author: YIKES, Inc
|
7 |
* Author URI: http://www.yikesinc.com
|
8 |
-
* Version: 1.5.
|
9 |
* Text Domain: yikes-inc-easy-custom-woocommerce-product-tabs
|
10 |
* Domain Path: languages/
|
11 |
*
|
@@ -62,7 +62,7 @@
|
|
62 |
private $tab_data = false;
|
63 |
|
64 |
/** plugin version number */
|
65 |
-
const VERSION = '1.5.
|
66 |
|
67 |
/** plugin text domain */
|
68 |
const TEXT_DOMAIN = 'yikes-inc-easy-custom-woocommerce-product-tabs';
|
@@ -272,7 +272,7 @@
|
|
272 |
public function add_custom_product_tabs( $tabs ) {
|
273 |
global $product;
|
274 |
|
275 |
-
$product_tabs = get_post_meta( $product->
|
276 |
|
277 |
if ( !empty( $product_tabs ) ) {
|
278 |
$this->tab_data = $product_tabs;
|
@@ -561,7 +561,7 @@
|
|
561 |
*/
|
562 |
private function product_has_custom_tabs( $product ) {
|
563 |
if ( false === $this->tab_data ) {
|
564 |
-
$this->tab_data = maybe_unserialize( get_post_meta( $product->
|
565 |
}
|
566 |
// tab must at least have a title to exist
|
567 |
return ! empty( $this->tab_data ) && ! empty( $this->tab_data[0] ) && ! empty( $this->tab_data[0]['title'] );
|
5 |
* Description: Extend WooCommerce to add and manage custom product tabs. Create as many product tabs as needed per product.
|
6 |
* Author: YIKES, Inc
|
7 |
* Author URI: http://www.yikesinc.com
|
8 |
+
* Version: 1.5.9
|
9 |
* Text Domain: yikes-inc-easy-custom-woocommerce-product-tabs
|
10 |
* Domain Path: languages/
|
11 |
*
|
62 |
private $tab_data = false;
|
63 |
|
64 |
/** plugin version number */
|
65 |
+
const VERSION = '1.5.9';
|
66 |
|
67 |
/** plugin text domain */
|
68 |
const TEXT_DOMAIN = 'yikes-inc-easy-custom-woocommerce-product-tabs';
|
272 |
public function add_custom_product_tabs( $tabs ) {
|
273 |
global $product;
|
274 |
|
275 |
+
$product_tabs = get_post_meta( $product->get_id(), 'yikes_woo_products_tabs' , true );
|
276 |
|
277 |
if ( !empty( $product_tabs ) ) {
|
278 |
$this->tab_data = $product_tabs;
|
561 |
*/
|
562 |
private function product_has_custom_tabs( $product ) {
|
563 |
if ( false === $this->tab_data ) {
|
564 |
+
$this->tab_data = maybe_unserialize( get_post_meta( $product->get_id(), 'yikes_woo_products_tabs', true ) );
|
565 |
}
|
566 |
// tab must at least have a title to exist
|
567 |
return ! empty( $this->tab_data ) && ! empty( $this->tab_data[0] ) && ! empty( $this->tab_data[0]['title'] );
|