yith-wcwl-browse-wishlist-label

The YITH WooCommerce Wishlist yith wcwl browse wishlist label hook.

Description

apply_filters( 'yith-wcwl-browse-wishlist-label', (unknown) $browse_wishlist_text ); 

Parameters (1)

0. $browse_wishlist_text (unknown)
The browse wishlist text.

Usage

To run the hook, copy the example below.
  1. $browse_wishlist_text = apply_filters( 'yith-wcwl-browse-wishlist-label', $browse_wishlist_text ); 
  2.  
  3. if ( !empty( $browse_wishlist_text ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the yith-wcwl-browse-wishlist-label callback 
  2. function filter_yith_wcwl_browse_wishlist_label( $browse_wishlist_text ) { 
  3. // make filter magic happen here... 
  4. return $browse_wishlist_text
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'yith-wcwl-browse-wishlist-label', 'filter_yith_wcwl_browse_wishlist_label', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'yith-wcwl-browse-wishlist-label', 'filter_yith_wcwl_browse_wishlist_label', 10, 1 ); 

Defined (4)

The filter is defined in the following location(s).

/templates/add-to-wishlist.php  
  1. <?php echo apply_filters( 'yith-wcwl-browse-wishlist-label', $browse_wishlist_text )?> 
  1. <?php echo apply_filters( 'yith-wcwl-browse-wishlist-label', $browse_wishlist_text )?> 
/includes/class.yith-wcwl-ui.php  
  1. $html .= '<div class="yith-wcwl-wishlistaddedbrowse hide" style="display:none;"><span class="feedback">' . __( 'Product added!', 'yith-woocommerce-wishlist' ) . '</span> <a href="' . esc_url( $url ) . '">' . apply_filters( 'yith-wcwl-browse-wishlist-label', __( 'Browse Wishlist', 'yith-woocommerce-wishlist' ) ) . '</a></div>'; 
  1. $html .= '<div class="yith-wcwl-wishlistexistsbrowse ' . ( $exists ? 'show' : 'hide' ) . '" style="display:' . ( $exists ? 'block' : 'none' ) . '"><span class="feedback">' . __( 'The product is already in the wishlist!', 'yith-woocommerce-wishlist' ) . '</span> <a href="' . esc_url( $url ) . '">' . apply_filters( 'yith-wcwl-browse-wishlist-label', __( 'Browse Wishlist', 'yith-woocommerce-wishlist' ) ) . '</a></div>';