astra_edd_archive_product_structure()
Show the product title in the product loop. By default this is an H2.
Description
Source
File: inc/compatibility/edd/edd-common-functions.php
function astra_edd_archive_product_structure() { $edd_structure = apply_filters( 'astra_edd_archive_product_structure', astra_get_option( 'edd-archive-product-structure' ) ); if ( is_array( $edd_structure ) && ! empty( $edd_structure ) ) { do_action( 'astra_edd_archive_before_block_wrap' ); echo '<div class="ast-edd-archive-block-wrap">'; do_action( 'astra_edd_archive_block_wrap_top' ); foreach ( $edd_structure as $value ) { switch ( $value ) { case 'title': /** * Add Product Title on edd page for all products. */ do_action( 'astra_edd_archive_title_before' ); do_action( 'astra_edd_archive_title' ); do_action( 'astra_edd_archive_title_after' ); break; case 'image': /** * Add Product Title on edd page for all products. */ do_action( 'astra_edd_archive_image_before' ); do_action( 'astra_edd_archive_image' ); do_action( 'astra_edd_archive_image_after' ); break; case 'price': /** * Add Product Price on edd page for all products. */ do_action( 'astra_edd_archive_price_before' ); do_action( 'astra_edd_archive_price' ); do_action( 'astra_edd_archive_price_after' ); break; case 'short_desc': /** * Add Product short description on edd page for all products. */ do_action( 'astra_edd_archive_short_description_before' ); do_action( 'astra_edd_archive_short_description' ); do_action( 'astra_edd_archive_short_description_after' ); break; case 'add_cart': /** * Add to cart on edd page for all products. */ do_action( 'astra_edd_archive_add_to_cart_before' ); do_action( 'astra_edd_archive_add_to_cart' ); do_action( 'astra_edd_archive_add_to_cart_after' ); break; case 'category': /** * Add and/or Remove Categories from edd archive page. */ do_action( 'astra_edd_archive_category_before' ); do_action( 'astra_edd_archive_category' ); do_action( 'astra_edd_archive_category_after' ); break; default: break; } } do_action( 'astra_edd_archive_block_wrap_bottom' ); echo '</div>'; do_action( 'astra_edd_archive_after_block_wrap' ); } }
Expand full source code Collapse full source code View on Trac