Astra_Woocommerce::astra_woocommerce_update_store_notice_atts( string $notice )
Update WooCommerce store notice. Extending this function to add custom data-attr as per Astra’s configuration.
Description
Parameters
- $notice
-
(string) (Required) Store notice markup.
Return
(string) $notice Store notice markup.
Source
File: inc/compatibility/woocommerce/class-astra-woocommerce.php
public function astra_woocommerce_update_store_notice_atts( $notice ) { $store_notice_position = astra_get_option( 'store-notice-position' ); $notice = str_replace( 'data-notice-id', 'data-position="' . $store_notice_position . '" data-notice-id', $notice ); return $notice; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |