Automattic\WooCommerce\Internal\ProductFeed\Integrations\POSCatalog
AsyncGenerator::register_hooks
Register hooks for the async generator.
Метод класса: AsyncGenerator{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$AsyncGenerator = new AsyncGenerator(); $AsyncGenerator->register_hooks(): void;
Список изменений
| С версии 10.5.0 | Введена. |
Код AsyncGenerator::register_hooks() AsyncGenerator::register hooks WC 10.5.2
public function register_hooks(): void {
add_action( self::FEED_GENERATION_ACTION, array( $this, 'feed_generation_action' ) );
add_action( self::FEED_DELETION_ACTION, array( $this, 'feed_deletion_action' ), 10, 2 );
}