woocommerce_structured_data_type_for_page

woocommerce_structured_data_type_for_page

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_structured_data_type_for_page') is found 1 times:

  • /includes/class-wc-structured-data.php line 133
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
        $types[] = is_product() ? 'review' : '';
        $types[] = 'breadcrumblist';
        $types[] = 'order';
     
        return array_filter( apply_filters( 'woocommerce_structured_data_type_for_page', $types ) );
    }
     
    /**
     * Makes sure email structured data only outputs on non-plain text versions.
     *
     * @param WP_Order $order         Order data.