woocommerce_demo_store
Usage
add_filter( 'woocommerce_demo_store', 'wp_kama_woocommerce_demo_store_filter', 10, 2 ); /** * Function for `woocommerce_demo_store` filter-hook. * * @param $html * @param $notice * * @return */ function wp_kama_woocommerce_demo_store_filter( $html, $notice ){ // filter... return $html; }
- $html
- -
- $notice
- -
Where the hook is called
woocommerce_demo_store
woocommerce/includes/wc-template-functions.php 1076
echo apply_filters( 'woocommerce_demo_store', '<p class="woocommerce-store-notice demo_store" data-notice-id="' . esc_attr( $notice_id ) . '" style="display:none;">' . wp_kses_post( $notice ) . ' <a href="#" class="woocommerce-store-notice__dismiss-link">' . esc_html__( 'Dismiss', 'woocommerce' ) . '</a></p>', $notice );