get_id(), $pa_taxonomy );
$author_name = '';
if ( $terms && ! is_wp_error( $terms ) ) {
foreach ( $terms as $term ) {
$author_name .= '' . $term->name . '';
}
}
return $author_name;
}
function bookory_woocommerce_single_publisher() {
$pa_publisher = bookory_get_book_publisher_taxonomy();
$publisher = bookory_wc_get_product_attributes($pa_publisher);
if ( ! empty ( $publisher ) ) : ?>
get_id(), ', ', '' . _n( 'Category:', 'বিষয়:', 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() {
// if (bookory_is_product_archive()) {
// return '';
// }
// }
function bookory_woocommerce_body_class($classes){
if (bookory_is_product_archive()) {
$classes = array_diff($classes, array(
'bookory-sidebar-left',
'bookory-sidebar-right',
'shop_filter_canvas',
'shop_filter_dropdown'
));
$classes[] = 'bookory-full-width-content';
}
return $classes;
}