Support » Plugin: YITH Advanced Refund System for WooCommerce » call a function on successful refund

  • Resolved farid1492

    (@farid1492)


    i want to call a function when a refund request is accepted and refund is approved, so please tell me is there any hook or filter so i can achive this

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi @farid1492,
    in the file yith-advanced-refund-system-for-woocommerce/includes/class.yith-refund-request.php:400
    there is this hook:
    do_action( 'ywcars_send_approved_user', $this->ID );
    you can use it in this way:

    add_action( 'ywcars_send_approved_user', 'my_function' );
    function my_function( $refund_request_id ) {
    // code
    }
    farid1492

    (@farid1492)

    thank you , i will try this

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