Quotation Docs

Filters

Each section of the plugin settings has its own id: options, catalog, quotelist, form, crm and license. Also its own filter to obtain the configurations with the following format

apply_filters ('woocommerce_get_settings_'. $ This-> id, $ settings)

That is, if you wanted to manipulate the data of the options settings, it would be as follows:

add_filter( 'woocommerce_get_settings_options', 'custom_get_settings_options' );

function custom_get_settings_options( $settings )
{
# do something...
return $new_settings;
}

adq_default_emails (apply_filters( ‘adq_default_emails’, $deafult_emails );)
To add or modify the default emails.

adq_order_statuses_options
To add or modify order statuses

For example:

add_filter( 'adq_order_statuses_options', 'add_order_note' );

function add_order_note( $statuses )
{
$statuses['added-note'] = __( 'Added note', 'woocommerce-quotation' );
return $statuses;
}

Email filters

Emails have their own id that can be used in a filter to modify the content before sending it.

For example:

add_filter( 'adq_email_body_adq_customer_note’, 'modify_email_content' );

function modify_email_content ( $content, $order )
{
# do something...
return $content;
}
add_filter( 'adq_email_body_adq_admin_request’, 'modify_email_content' );

function modify_email_content ( $content, $order )
{
# do something...
return $content;
}