Automattic\WooCommerce\Internal\StockNotifications\Emails
EmailTemplatesController::register_template_hooks
Add template hooks.
Method of the class: EmailTemplatesController{}
No Hooks.
Returns
null. Nothing (null).
Usage
$EmailTemplatesController = new EmailTemplatesController(); $EmailTemplatesController->register_template_hooks();
EmailTemplatesController::register_template_hooks() EmailTemplatesController::register template hooks code WC 10.3.6
public function register_template_hooks() {
add_action( 'woocommerce_email_stock_notification_product', array( $this, 'email_product_image' ), 10, 3 );
add_action( 'woocommerce_email_stock_notification_product', array( $this, 'email_product_title' ), 20, 3 );
add_action( 'woocommerce_email_stock_notification_product', array( $this, 'email_product_attributes' ), 30, 3 );
add_action( 'woocommerce_email_stock_notification_product', array( $this, 'email_product_price' ), 40, 3 );
}