Custom Fields from the plug in to use in invoice plug in.

Hello,

I wanna use custom field plug in my invoice plug in

Can you give me php example how to use custom field with id?

I need working php example...

My icustom field and id is - {custom_field#57819}

Any help would be helpful. Thanks. 

0

Comments

1 comment
Date Votes
  • Hello. Please implement this code:

    foreach ( json_decode( $ca->getCustomFields() ) as $custom_field ) {
                        $value = nl2br( esc_html( is_array( $custom_field->value ) ? implode( ',', $custom_field->value ) : $custom_field->value ) );
                        $codes[ '{custom_field#' . $custom_field->id . '}' ] = $value;
                    }

    File wp-content/plugins/bookly-addon-invoices/backend/components/invoice/Invoice.php:64

    0

Please sign in to leave a comment.

Didn't find what you were looking for?

New post