get_id(), $pa_taxonomy );
$author_name = '';
if ( $terms && ! is_wp_error( $terms ) ) {
foreach ( $terms as $term ) {
$author_name .= '' . $term->name . '';
}
}
return $author_name;
}
if (!function_exists('bookory_woocommerce_single_author')) {
function bookory_woocommerce_single_author() {
$author_name = bookory_wc_get_product_author();
if ( ! empty ( $author_name ) ) : ?>
get_id(), ', ', '' . _n( 'বিষয়:', 'বিষয়সমূহ:', count( $product->get_category_ids() ), 'woocommerce' ) . ' ', '' ); ?>
prepare("t.name LIKE %s", $wpdb->esc_like($args['first_letter']) . '%');
return $clauses;
}
add_action('init', 'bookory_setup_woocommerce_set_sidebar', 999);
function bookory_setup_woocommerce_set_sidebar(){
add_filter('bookory_theme_sidebar', 'bookory_woocommerce_set_sidebar', 20);
add_filter('body_class', 'bookory_woocommerce_body_class');
}
function bookory_woocommerce_set_sidebar($name) {
if (is_product_taxonomy() || is_product_category()) {
$name = '';
}
return $name;
}
function bookory_woocommerce_body_class($classes){
if (is_product_taxonomy() || is_product_category()) {
$classes = array_diff($classes, array(
'bookory-sidebar-left',
'bookory-sidebar-right',
'shop_filter_canvas',
'shop_filter_dropdown'
));
$classes[] = 'bookory-full-width-content';
}
return $classes;
}
function bookory_woocommerce_deal_progress() {
global $product;
$limit = get_post_meta($product->get_id(), '_deal_quantity', true);
$sold = intval(get_post_meta($product->get_id(), '_deal_sales_counts', true));
if (empty($limit)) {
return;
}
?>
' );
}