Reset_Listing::has_overrides( WP_Post $post )
Summary
Check the product’s listing data to see if it overrides any of the base product fields
Parameters
- $post
-
(WP_Post) (Required)
Return
(bool)
Source
File: src/BigCommerce/Post_Types/Product/Reset_Listing.php
public function has_overrides( \WP_Post $post ) { $product = new Product( $post->ID ); $listing = $product->get_listing_data(); if ( empty( $listing ) ) { return false; } if ( empty( $listing->name ) && empty( $listing->description ) ) { return false; } return true; }