From 3803e90fb40a90d62e1a62b434030c15bd80c054 Mon Sep 17 00:00:00 2001 From: Kader Ibrahim Shaik Dawood Date: Mon, 17 Oct 2022 14:08:03 +0530 Subject: [PATCH 01/41] Adds local dev configurations to gitignore --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7d1531631..94f900efa 100644 --- a/.gitignore +++ b/.gitignore @@ -34,4 +34,5 @@ codeception.yml # local dev configurations .wp-env.json -php.ini \ No newline at end of file +php.ini +wp-config.php \ No newline at end of file From af5a2d7cccfc83e6e7d0d0700f48557709ced284 Mon Sep 17 00:00:00 2001 From: Kader Ibrahim Shaik Dawood Date: Mon, 17 Oct 2022 14:47:28 +0530 Subject: [PATCH 02/41] Rename all mentions of FB Product Set to Facebook Product Set --- class-wc-facebookcommerce.php | 15 ++++++++------- facebook-commerce.php | 2 +- includes/Admin/Product_Sets.php | 6 +++--- includes/ProductSets/Sync.php | 2 +- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/class-wc-facebookcommerce.php b/class-wc-facebookcommerce.php index 05801bb7a..c786895ed 100644 --- a/class-wc-facebookcommerce.php +++ b/class-wc-facebookcommerce.php @@ -470,14 +470,14 @@ public function remove_product_fb_product_set_metabox() { } /** - * Register FB Product Set Taxonomy + * Register Facebook Product Set Taxonomy * * @since 2.3.0 */ public function register_custom_taxonomy() { - $plural = esc_html__( 'FB Product Sets', 'facebook-for-woocommerce' ); - $singular = esc_html__( 'FB Product Set', 'facebook-for-woocommerce' ); + $plural = esc_html__( 'Facebook Product Sets', 'facebook-for-woocommerce' ); + $singular = esc_html__( 'Facebook Product Set', 'facebook-for-woocommerce' ); $args = array( 'labels' => array( @@ -502,6 +502,7 @@ public function register_custom_taxonomy() { 'public' => true, 'show_in_nav_menus' => false, 'show_tagcloud' => false, + 'show_in_menu' => false, ); register_taxonomy( 'fb_product_set', array( 'product' ), $args ); @@ -509,7 +510,7 @@ public function register_custom_taxonomy() { /** - * Filter FB Product Set Taxonomy table links + * Filter Facebook Product Set Taxonomy table links * * @since 2.3.0 * @@ -525,7 +526,7 @@ public function product_set_links( $actions ) { /** - * Remove posts count column from FB Product Set custom taxonomy + * Remove posts count column from Facebook Product Set custom taxonomy * * @since 2.3.0 * @@ -540,7 +541,7 @@ public function manage_fb_product_set_columns( $columns ) { /** - * Filter WC Breadcrumbs when the page is FB Product Sets + * Filter WC Breadcrumbs when the page is Facebook Product Sets * * @since 2.3.0 * @@ -572,7 +573,7 @@ public function wc_page_breadcrumbs_filter( $breadcrumbs ) { /** - * Return that FB Product Set page is a WC Conected Page + * Return that Facebook Product Set page is a WC Conected Page * * @since 2.3.0 * diff --git a/facebook-commerce.php b/facebook-commerce.php index 9a8c03405..8a6b99e53 100644 --- a/facebook-commerce.php +++ b/facebook-commerce.php @@ -1667,7 +1667,7 @@ public function create_or_update_product_set_item( $product_set_data, $product_s ) ); - // update product set to set FB Product Set ID + // update product set to set Facebook Product Set ID if ( $result && empty( $fb_product_set_id ) ) { // decode and get ID from result body diff --git a/includes/Admin/Product_Sets.php b/includes/Admin/Product_Sets.php index 00381443b..3b277af64 100644 --- a/includes/Admin/Product_Sets.php +++ b/includes/Admin/Product_Sets.php @@ -75,7 +75,7 @@ public function __construct() { /** - * Add field to FB Product Set new term + * Add field to Facebook Product Set new term * * @since 2.3.0 */ @@ -90,7 +90,7 @@ public function category_field_on_new() { /** - * Add field to FB Product Set new term + * Add field to Facebook Product Set new term * * @since 2.3.0 * @@ -179,7 +179,7 @@ class="select2 wc-facebook product_cats"