Automattic\WooCommerce\Internal\ProductFeed\Storage
JsonFileFeed::get_entry_count
Get the number of entries that have been added to the feed.
This reflects the rows actually written to the feed, which may be fewer than the number of products iterated by ProductWalker because the validator can silently drop entries before they reach add_entry().
Method of the class: JsonFileFeed{}
No Hooks.
Returns
Int. Number of entries added to the feed.
Usage
$JsonFileFeed = new JsonFileFeed(); $JsonFileFeed->get_entry_count(): int;
Changelog
| Since 10.9.0 | Introduced. |
JsonFileFeed::get_entry_count() JsonFileFeed::get entry count code WC 10.9.4
public function get_entry_count(): int {
return $this->entry_count;
}