ASTRA_Ext_Edd_Markup::edd_initializattion()
Easy Digital Downloads initialization
Description
Return
(void)
Source
File: addons/edd/classes/class-astra-ext-edd-markup.php
public function edd_initializattion() { $is_edd_archive_page = astra_is_edd_archive_page(); $is_edd_single_product_page = astra_is_edd_single_product_page(); // Edd archive page. if ( $is_edd_archive_page ) { // Edd archive page product style. $shop_style = astra_get_option( 'edd-archive-style' ); $product_archive_structure = astra_get_option( 'edd-archive-product-structure' ); if ( 'edd-archive-page-list-style' == $shop_style && in_array( 'image', $product_archive_structure ) ) { remove_action( 'astra_edd_archive_image', 'astra_edd_archive_product_image' ); add_action( 'astra_edd_archive_before_block_wrap', 'astra_edd_archive_product_image' ); } // Edd Archive Page Title. if ( ! astra_get_option( 'edd-archive-page-title-display' ) ) { add_filter( 'astra_the_title_enabled', '__return_false' ); } } if ( $is_edd_single_product_page ) { // Remove the purchase button on single EDD Product page. $disable_edd_single_product_add_to_cart = astra_get_option( 'disable-edd-single-product-add-to-cart' ); if ( $disable_edd_single_product_add_to_cart ) { remove_action( 'edd_after_download_content', 'edd_append_purchase_link' ); } } }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.6.10 | Introduced. |