Hook (Action & Filter) for a custom Product Class

#19103
  • Resolved Dat Verse
    Rank Math free

    Hi,

    I create a custom WooCommerce Product Class:

    class WC_Lookbok_Product extends WC_Product {
    ...
    }

    In WooCommerce Core have function:

    /**
    * Generates Product structured data.
    *
    * Hooked into <code>woocommerce_single_product_summary</code> action hook.
    *
    * @param WC_Product $product Product data (default: null).
    */
    function generate_product_data {
    ...
    }

    and in this function have Filters:

    apply_filters( 'woocommerce_structured_data_product_offer', $markup_offer, $product );
    apply_filters( 'woocommerce_structured_data_product', $markup, $product );

    RankMath Plugin have any Filter(s) / Action(s) to change the Rich Snippet Review in Admin – Edit Product, and custom the JSON-LD Markup for this custom WooCommerce Product?

    Thanks

    • This topic was modified 5 years, 1 month ago by Dat Verse.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘Hook (Action & Filter) for a custom Product Class’ is closed to new replies.