woocommerce_demo_store filter-hookWC 1.6.4

Filter demo store notice.

Usage

add_filter( 'woocommerce_demo_store', 'wp_kama_woocommerce_demo_store_filter', 10, 2 );

/**
 * Function for `woocommerce_demo_store` filter-hook.
 * 
 * @param string $store_notice Notice element.
 * @param        $notice       
 *
 * @return string
 */
function wp_kama_woocommerce_demo_store_filter( $store_notice, $notice ){

	// filter...
	return $store_notice;
}
$store_notice(string)
Notice element.
$notice
-

Changelog

Since 1.6.4 Introduced.

Where the hook is called

woocommerce_demo_store()
woocommerce_demo_store
woocommerce/includes/wc-template-functions.php 1133
echo apply_filters( 'woocommerce_demo_store', '<p role="complementary" aria-label="' . esc_attr__( 'Store notice', 'woocommerce' ) . '" class="woocommerce-store-notice demo_store" data-notice-id="' . esc_attr( $notice_id ) . '" style="display:none;">' . wp_kses_post( $notice ) . ' <a role="button" href="#" class="woocommerce-store-notice__dismiss-link">' . esc_html__( 'Dismiss', 'woocommerce' ) . '</a></p>', $notice ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped

Where the hook is used in WooCommerce

Usage not found.