GET YOUR FIRST 14-DAYS OF PRO FREE

Plugin filters

In this post:

We have added a few filters for now which are documented on this page. We are planning to add more filters in future releases so you can easily modify or override the output as a developer.

Default hooks

Price Label

apply_filters( 'staggs_price_from_label', __( 'From', 'staggs' ) );

Option Group

apply_filters( 'staggs_sanitized_option_group',$sanitized_option_group, $option_group_id );

Option Item

$sanitized_option = apply_filters( 'staggs_sanitized_option_item', $sanitized_option, $option_id );

 

Premium hooks

Out of stock label

apply_filters( 'staggs_out_of_stock_message', __( 'Out of stock', 'staggs' ) );

Stock notification

$email   = apply_filters( 'staggs_stock_notification_email', $to );
$subject = apply_filters( 'staggs_stock_notification_email_subject', $title );
$content = apply_filters( 'staggs_stock_notification_email_content', $content );

PDF output

Modify all HTML output:

apply_filters( 'staggs_pdf_html', $pdf_html );

Modify only parts of HTML output:

apply_filters( 'staggs_pdf_header_html', $pdf_header_html );
apply_filters( 'staggs_pdf_product_details', $pdf_product_html, $product_id, $product_values );
apply_filters( 'staggs_pdf_configuration_html', $pdf_configuration, $product_id, $product_values );
apply_filters( 'staggs_pdf_totals_html', $pdf_totals_html );
apply_filters( 'staggs_pdf_footer_html', '' );
apply_filters( 'staggs_pdf_styles', $pdf_styles );

Attribute Types

Chevron icon
Toggle widget nav content

Hooks and Filters

Chevron icon
Toggle widget nav content
Hooks reference

Filter reference