Automattic\WooCommerce\Internal\ProductFeed\Integrations\POSCatalog
AsyncGenerator::feed_deletion_action
Action scheduler callback for the feed deletion after expiry.
Method of the class: AsyncGenerator{}
No Hooks.
Returns
null. Nothing (null).
Usage
$AsyncGenerator = new AsyncGenerator(); $AsyncGenerator->feed_deletion_action( $option_key, $path );
- $option_key(string) (required)
- The option key for the feed generation status.
- $path(string) (required)
- The path to the feed file.
Changelog
| Since 10.5.0 | Introduced. |
AsyncGenerator::feed_deletion_action() AsyncGenerator::feed deletion action code WC 10.8.1
public function feed_deletion_action( string $option_key, string $path ) {
delete_option( $option_key );
wp_delete_file( $path );
}