0 ) {
return $per_page;
}
return $product_number;
}
}
if ( ! function_exists( 'ayyash_wc_hide_page_title' ) ) {
/**
* Show Title
*
* @return bool
*/
function ayyash_wc_hide_page_title() {
return ayyash_get_mod( 'woocommerce_shop_archive_title' ) == 1;
}
}
if ( ! function_exists( 'ayyash_remove_wc_breadcrumbs' ) ) {
/**
* Remove Shop Page Breadcrumbs as we have default
*
* @return void
*/
function ayyash_remove_wc_breadcrumbs() {
remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20 );
}
}
if ( ! function_exists( 'ayyash_wc_remove_result_count' ) ) {
/**
* Remove Shop Filter
*
* @return void
*/
function ayyash_wc_remove_result_count() {
if ( ayyash_get_mod( 'woocommerce_shop_archive_result_count' ) == 0 ) {
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
} else {
add_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
}
}
}
if ( ! function_exists( 'ayyash_wc_remove_archive_short' ) ) {
/**
* Remove Shop Page Filter
*
* @return void
*/
function ayyash_wc_remove_archive_short() {
if ( ayyash_get_mod( 'woocommerce_shop_archive_sort' ) == 0 ) {
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
} else {
add_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 30 );
}
}
}
if ( ! function_exists( 'ayyash_shop_header_open' ) ) {
/**
* Ayyash Shop header open
*
* @return void
*/
function ayyash_shop_header_open() {
echo '