• Resolved nichinu

    (@nichinu)


    i am using mycred to reward customer for order purchase.
    And I am using this code to add order id in the log:

    add_filter( ‘mycred_log_entry’, ‘mycred_log_entry_func’, 10, 3 );

    function mycred_log_entry_func( $content, $entry, $log_entry ) {
    if ( $log_entry->ref == ‘reward’ && ! empty( $log_entry->ref_id ) ) {
    return $content . ” (#{$log_entry->ref_id})”;
    }
    return $content;
    }
    But it is showing post id instead of the order id.
    How can I change it to show the relevant order number.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get sequnece number with refernce to order/post id’ is closed to new replies.