` HTML output. * @since 5.1.8 */ public static function hide_pagination( $woocommerce ) { if ( ! $woocommerce ) { return false; } $hide_pagination = apply_filters( 'alm_woo_hide_pagination', true ); $classname = apply_filters( 'alm_woo_pagination_class', 'woocommerce-pagination' ); return $classname && $hide_pagination ? '' : ''; } /** * Hide the woocommerce orderby filter on ALM pages. * * @param boolean $woocommerce Is woocommerce active. * @return string The raw `' : ''; } /** * Get default WooCommerce props. * * @param string $type Prop name. * @param string $default Default value. * @return string The loop prop value. * @since 5.1.8 */ public static function get_loop_prop( $type = '', $default = '' ) { if ( function_exists( 'wc_get_loop_prop' ) && ! empty( $type ) ) { $prop = wc_get_loop_prop( $type ); $value = $prop ? $prop : $default; return $value; } } /** * Get default wrapper class. * * @return string The wrapper class. * @since 5.1.8 */ public static function get_wrapper_class() { return 'alm-woocommerce woocommerce'; } } endif;