• Hello i need customize text on acceptance terms & condition (if use nor accept).

    I see the text in on row #562 on file /includes/class-wc-checkout.php
    If i edit here i lost when update plugin. I see here https://docs.woocommerce.com/document/introduction-to-hooks-actions-and-filters/ that i must use an hook. I try with this but not work:

    add_filter( 'wc_add_notice', 'custom_check_error' );
    
    function custom_check_error( $variable ) {
    // Your code
    echo "It is necessary to tick the box processing of my personal data";
    return $variable;
    }

    Anyone can help me?

    Thanks

  • The topic ‘Customize text on error acceptance terms and condition’ is closed to new replies.