/home/techb158/balacoffee.com/wp-content/plugins/woocommerce/src/Internal
NameSizeModeActions
Abilities/-0755rm
AbilitiesApi/-0755rm
AddressProvider/-0755rm
Admin/-0755rm
Agentic/-0755rm
BatchProcessing/-0755rm
Caches/-0755rm
CLI/-0755rm
ComingSoon/-0755rm
CostOfGoodsSold/-0755rm
Customers/-0755rm
DataStores/-0755rm
DependencyManagement/-0755rm
Email/-0755rm
EmailEditor/-0755rm
Features/-0755rm
Integrations/-0755rm
Jetpack/-0755rm
Logging/-0755rm
MCP/-0755rm
Orders/-0755rm
ProductAttributesLookup/-0755rm
ProductDownloads/-0755rm
ProductFeed/-0755rm
ProductFilters/-0755rm
ProductImage/-0755rm
PushNotifications/-0755rm
ReceiptRendering/-0755rm
RestApi/-0755rm
Settings/-0755rm
StockNotifications/-0755rm
Traits/-0755rm
TransientFiles/-0755rm
Utilities/-0755rm
WCCom/-0755rm
AssignDefaultCategory.php20010644editdlrm
Brands.php13000644editdlrm
DownloadPermissionsAdjuster.php66780644editdlrm
McStats.php21490644editdlrm
OrderCouponDataMigrator.php85280644editdlrm
RegisterHooksInterface.php5040644editdlrm
RestApiControllerBase.php82070644editdlrm
RestApiParameterUtil.php58540644editdlrm
RestockRefundedItemsAdjuster.php21290644editdlrm
Edit: /home/techb158/balacoffee.com/wp-content/plugins/woocommerce/src/Internal/AssignDefaultCategory.php (2001B)
queue()->schedule_single( time(), 'wc_schedule_update_product_default_cat', array(), 'wc_update_product_default_cat' ); } /** * Assigns default product category for products * that have no categories. * * @return void */ public function maybe_assign_default_product_cat() { global $wpdb; $default_category = get_option( 'default_product_cat', 0 ); if ( $default_category ) { $affected_rows = $wpdb->query( $wpdb->prepare( "INSERT INTO {$wpdb->term_relationships} (object_id, term_taxonomy_id) SELECT DISTINCT posts.ID, %s FROM {$wpdb->posts} posts LEFT JOIN ( SELECT object_id FROM {$wpdb->term_relationships} term_relationships LEFT JOIN {$wpdb->term_taxonomy} term_taxonomy ON term_relationships.term_taxonomy_id = term_taxonomy.term_taxonomy_id WHERE term_taxonomy.taxonomy = 'product_cat' ) AS tax_query ON posts.ID = tax_query.object_id WHERE posts.post_type = 'product' AND tax_query.object_id IS NULL", $default_category ) ); if ( $affected_rows > 0 ) { wp_cache_flush(); delete_transient( 'wc_term_counts' ); wp_update_term_count_now( array( $default_category ), 'product_cat' ); } } } }