Astra_Edd::__construct()
Constructor
Description
Source
File: inc/compatibility/edd/class-astra-edd.php
public function __construct() { require_once ASTRA_THEME_DIR . 'inc/compatibility/edd/edd-common-functions.php';// phpcs:ignore WPThemeReview.CoreFunctionality.FileInclude.FileIncludeFound add_filter( 'astra_theme_defaults', array( $this, 'theme_defaults' ) ); // Register Store Sidebars. add_action( 'widgets_init', array( $this, 'store_widgets_init' ), 15 ); // Replace Edd Store Sidebars. add_filter( 'astra_get_sidebar', array( $this, 'replace_store_sidebar' ) ); // Edd Sidebar Layout. add_filter( 'astra_page_layout', array( $this, 'store_sidebar_layout' ) ); // Edd Content Layout. add_filter( 'astra_get_content_layout', array( $this, 'store_content_layout' ) ); add_filter( 'body_class', array( $this, 'edd_products_item_class' ) ); add_filter( 'post_class', array( $this, 'edd_single_product_class' ) ); add_filter( 'post_class', array( $this, 'render_post_class' ), 99 ); add_action( 'customize_register', array( $this, 'customize_register' ), 2 ); add_filter( 'astra_theme_assets', array( $this, 'add_styles' ) ); add_action( 'wp_enqueue_scripts', array( $this, 'add_inline_scripts' ) ); add_filter( 'astra_dynamic_theme_css', array( $this, 'add_inline_styles' ) ); add_action( 'wp', array( $this, 'edd_initialization' ) ); add_action( 'init', array( $this, 'edd_set_defaults_initialization' ) ); // Add Cart option in dropdown. add_filter( 'astra_header_section_elements', array( $this, 'header_section_elements' ) ); // Add Cart icon in Menu. add_filter( 'astra_get_dynamic_header_content', array( $this, 'astra_header_cart' ), 10, 3 ); add_filter( 'astra_single_post_navigation', array( $this, 'edd_single_post_navigation' ) ); // Header Cart Icon. add_action( 'astra_edd_header_cart_icons_before', array( $this, 'header_cart_icon_markup' ) ); add_filter( 'astra_edd_cart_in_menu_class', array( $this, 'header_cart_icon_class' ), 99 ); }
Expand full source code Collapse full source code View on Trac