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 6 years ago by Dat Verse.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael Davis
    Rank Math free

    Hello,

    Thank you for contacting Rank Math today.

    Yes we have a couple of filters that can help you out. Please take a look here for more info:
    https://rankmath.com/kb/filters-hooks-api-developer/

    Looking forward to helping you. Thank you.

    ​​​​​​

    Dat Verse
    Rank Math free

    Thanks

    • This reply was modified 6 years ago by Dat Verse.
    • This reply was modified 6 years ago by Dat Verse.
    • This reply was modified 6 years ago by Dat Verse.
    Michael Davis
    Rank Math free

    HI,

    We are glad to be of help.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

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