PATH:
home
/
niazsaze
/
public_html
/
wp-content
/
themes
/
flatsome
/
inc
/
woocommerce
<?php /** * Generate product structured data at later point. * (hook woocommerce_single_product_summary is not always available) */ function flatsome_single_product_custom_structured_data() { if ( ! class_exists( 'WC_Structured_Data' ) ) { return; } $structured_data = WC()->structured_data; if ( ! is_object( $structured_data ) || ! is_a( $structured_data, 'WC_Structured_Data' ) ) { return; } remove_action( 'woocommerce_single_product_summary', [ $structured_data, 'generate_product_data' ], 60 ); add_action( 'woocommerce_after_single_product', [ $structured_data, 'generate_product_data' ], 60 ); } add_action( 'flatsome_before_single_product_custom', 'flatsome_single_product_custom_structured_data' );
[-] structure-wc-category-page-header.php
[edit]
[-] class-shipping.php
[edit]
[-] structure-wc-conditionals.php
[edit]
[-] structure-wc-product-page-header.php
[edit]
[-] structure-wc-helpers.php
[edit]
[-] structure-wc-product-box.php
[edit]
[-] class-buy-now.php
[edit]
[-] class-mini-cart.php
[edit]
[-] structure-wc-product-page.php
[edit]
[-] structure-wc-product-page-fields.php
[edit]
[-] structure-wc-single-product-custom.php
[edit]
[-] structure-wc-checkout.php
[edit]
[-] structure-wc-category-page.php
[edit]
[-] structure-wc-cart.php
[edit]
[+]
..
[-] structure-wc-global.php
[edit]
[-] structure-wc-catalog-mode.php
[edit]