wordpress/wp-content/themes/basic/themify/themify-metabox/includes/themify-metabox-utils.php
/**
 * Returns the ID of the designated Shop page in WC plugin
 *
 * @return false|int
 */
Returns the ID of the designated Shop page in WC plugin
@return false|int
Returns the ID of the designated Shop page in WC plugin @return false|int
function themify_metabox_shop_pageId(){
	if(function_exists('themify_shop_pageId')){
		return themify_shop_pageId();
	}
	static $id = null;
	if ( $id === null ) {
		if ( themify_metabox_is_woocommerce_active() ) {
			$id = (int) wc_get_page_id( 'shop' );
			if ( $id <= 0 ) { 
				$page = get_page_by_path( 'shop' );
				$id = ! empty( $page ) ? (int) $page->ID : false;
			}
		} else {
			$id = false;
	    }
	}
	return $id;
}
function themify_metabox_shop_pageId ( ) { if ( function_exists ( 'themify_shop_pageId' ) ) { return themify_shop_pageId ( ) ; } static $ id = null ; if ( $ id === null ) { if ( themify_metabox_is_woocommerce_active ( ) ) { $ id = ( int ) wc_get_page_id ( 'shop' ) ; if ( $ id <= 0 ) { $ page = get_page_by_path ( 'shop' ) ; $ id = ! empty ( $ page ) ? ( int ) $ page -> ID : false ; } } else { $ id = false ; } } return $ id ; }
Returns the ID of the designated Shop page in WC plugin
 @return false|int
Returns the ID of the designated Shop page in WC plugin @return false|int
//wc bug, page id isn't from wc settings,the default should be page with slug 'shop'