Support » Plugin: WooCommerce Product Dependencies » Link in Custom notice

Viewing 3 replies - 1 through 3 (of 3 total)
  • /**
    * Returns the custom dependency notice.
    * @since 1.2.0
    * @param WC_Product $product
    * @return string $notice
    public function get_dependency_notice( $product ) {

    if ( WC_PD_Core_Compatibility::is_wc_version_gte_2_7() ) {
    $notice = $product->get_meta( ‘_dependency_notice’, true );
    } else {
    $notice = get_post_meta( $product->id, ‘_dependency_notice’, true );

    return $notice;

    I think its this function I need to adjust

    Plugin Contributor Jason Kytros


    Hey there,

    Thanks for reaching out!

    We tried adding a hyperlink in the Custom Notice field and indeed it seems that it is not rendered correctly! Thank you for bringing this to our attention!

    We managed to fix this issue by slightly modifying the code that renders the Custom Notice field. The fix is included in the latest pre-release Product Dependencies version, which you can download directly from our repository:

    Let us know how this goes once you have a chance to test it! 🙂

    Jason Kytros
    Support Engineer

    SomewhereWarm SMPC

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.