markup for WooCommerce shop page * * @since 1.2.3 */ add_action( 'woocommerce_before_main_content', 'bizznis_output_shop_content_wrapper', 10 ); function bizznis_output_shop_content_wrapper() { printf( '
', bizznis_attr( 'entry' ) ); } /** * End
markup for WooCommerce shop page * * @since 1.2.3 */ add_action( 'woocommerce_after_main_content', 'bizznis_output_shop_content_wrapper_end', 10 ); function bizznis_output_shop_content_wrapper_end() { echo ''; } /** * Manage page layout for the Product archive (Shop) page * * Set the layout in the Bizznis layouts metabox in the Page Editor * * @since 1.0.0 */ add_filter( 'bizznis_pre_get_option_site_layout', 'bizznis_wc_archive_layout' ); function bizznis_wc_archive_layout( $layout ) { $shop_page_id = get_option( 'woocommerce_shop_page_id' ); $layout = get_post_meta( $shop_page_id, '_bizznis_layout', true ); if ( $layout ) { return $layout; } } /** * Display shop items (product custom post archive) * * This is needed thanks to substantial changes to WooC template contents * introduced in WooC 1.6.0. * * @since 1.0.0 */ add_action( 'bizznis_loop', 'bizznis_wc_archive_product_loop', 5 ); function bizznis_wc_archive_product_loop() { global $woocommerce; bizznis_wc_content_product(); } bizznis(); #Fire the engine