array( 'priority' => 10, 'type' => 'filter', 'callback' => 'AWL_Integrations_Callbacks::woocommerce_product_get_image', 'args' => 3 ), 'woocommerce_before_shop_loop_item' => array( 'priority' => 10, 'js' => array( '.et_shop_image', 'append' ) ) ); } // Divi builder single product page if ( function_exists('et_builder_dynamic_module_framework') && function_exists('et_builder_is_frontend') ) { $et_dynamic_module_framework = et_builder_dynamic_module_framework(); $enabled = et_builder_is_frontend() && 'on' === $et_dynamic_module_framework; if ( $enabled ) { if ( is_singular('product') && $_et_dynamic_cached_shortcodes = get_post_meta( get_queried_object_id(), '_et_dynamic_cached_shortcodes', true ) ) { if ( array_search( 'et_pb_wc_title', $_et_dynamic_cached_shortcodes ) !== false ) { $hooks['before_title']['single'] = array( 'et_pb_wc_title_shortcode_output' => array( 'priority' => 10, 'type' => 'filter', 'before' => true )); } if ( array_search( 'et_pb_wc_gallery', $_et_dynamic_cached_shortcodes ) !== false ) { $hooks['on_image']['single']['et_pb_wc_gallery_shortcode_output'] = array( 'priority' => 10, 'type' => 'filter', 'before' => true ); } } } } return $hooks; } } endif; AWL_Divi::instance();