Last active
June 16, 2022 13:09
-
-
Save UraraReika/e9f09e16c678e78a6f9bfc85fc0d765a to your computer and use it in GitHub Desktop.
Handle Products Grid & List widgets not found message to display Elementor templates.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Use for Products List widget: | |
* `jet-woo-builder/shortcodes/jet-woo-products-list/not-found-message` | |
* | |
* For Wishlist widget: | |
* `jet-cw/wishlist/empty_text` | |
* | |
* For Compare Table widget: | |
* `jet-cw/compare/empty_text` | |
*/ | |
add_filter( 'jet-woo-builder/shortcodes/jet-woo-products/not-found-message', function( $message ) { | |
$message = str_replace( '"', '"', $message ); | |
$message = str_replace( '\\', '"', $message ); | |
return do_shortcode( $message ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment