yith_wcwl_is_wishlist_page

Check if current page is wishlist.

Description

yith_wcwl_is_wishlist_page(); 

Usage

  1. if ( !function_exists( 'yith_wcwl_is_wishlist_page' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'yith-woocommerce-wishlist/includes/functions.yith-wcwl.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = yith_wcwl_is_wishlist_page(); 
  7.  

Defined (1)

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

/includes/functions.yith-wcwl.php  
  1. function yith_wcwl_is_wishlist_page() { 
  2. $wishlist_page_id = yith_wcwl_object_id( get_option( 'yith_wcwl_wishlist_page_id' ) ); 
  3.  
  4. if( ! $wishlist_page_id ) { 
  5. return false; 
  6.  
  7. return is_page( $wishlist_page_id );