View Product Page

Filters

templates/shortcode/ywbc-search-products.php

Copied!
Copy

Filter the name of the buttons of the shortcode table to be translated

Params
 $barcode_action Default actions.

templates/shortcode/ywbc-complete-orders.php

Copied!
Copy

Filter the columns header labels in the complete orders table


templates/admin/apply-barcodes.php

Copied!
Copy

Filter the default query args when retrieving products in the apply-barcodes view

Params
 array $post_type, $post_status, $posts_per_page, $fields, $meta_query.

Copied!
Copy

Filter the default post_types in the apply-barcodes view

Params
 array $post_types ('product', 'product_variation') by default.

plugin-options/settings/print-options.php

Copied!
Copy

Filter the default plugin tools options


includes/class-ywbc-plugin-fw-loader.php

Copied!
Copy

Filter the default capabilities to be the plugin options


includes/class-yith-ywbc-shortcodes.php

Copied!
Copy

Filter the condition to update or not the order status using the shortcode buttons

Params
 bool true to update the order status, false to not
 int $id the order ID.

Copied!
Copy

Filter the stock number when using the buttons in the shortcode

Params
 $value  Default value of stock changer.
 $status Default status behavior of the stock changer ('increase-stock' by default).

Copied!
Copy

Filter the object when changing the status in the barcode shortcode

Params
 $object Default object.

Copied!
Copy

Filter the templace when changing the status in the barcode shortcode

Params
 $template Default template.

Copied!
Copy

Filter the condition to get or not the template after the barcode status update

Params
 bool true to update the order status, false to not
 int $id the order ID.

Copied!
Copy

Filter the items when searching with ajax in the barcode shortcode

Params
 $items $this->barcode_action_search.

Copied!
Copy

Filter the template when searching with ajax in the barcode shortcode

Params
 $template Default template.

Copied!
Copy

Filter the condition to redirect before loading when searching in the barcode shortcode


Copied!
Copy

Filter the decrease stock behavior when using the barcode shortcode


Copied!
Copy

Filter the increase stock behavior when using the barcode shortcode


Copied!
Copy

Filter the default actions in the order shortcode

Params
 $actions Default actions.

Copied!
Copy

Filter the Order barcode label in the order shortcode


Copied!
Copy

Filter the Product barcode label in the order shortcode


Copied!
Copy

Filter the search action in the shortcodes

Params
 array $args  Default plugin args.
 string $text Default text.
 string $type 'shop_order' by default.

includes/class-yith-ywbc-frontend.php

Copied!
Copy

Filter the condition create or not the order barcode on new order

Params
 $order_id ID of the order.

Copied!
Copy

Filter the value of the barcode image when creating the order barcode

Params
 $the_value Formatted value.
 $order_id  ID of the order.
 $protocol  Current protocol.
 $value     Current value.

Copied!
Copy

Filter the enqueue of the frontend script


Copied!
Copy

Filter the default loading gif in the frontend


Copied!
Copy

Filter the conmdition to show the barcode in the view order page or not

Params
 $bool  false by default.
 $order Order object.

Copied!
Copy

Filter the condition to use or not the original product barcode in the single product page


includes/class-yith-ywbc-backend.php

Copied!
Copy

Filter the condition to modify the roles ables of create the barcodes


Copied!
Copy

Filter the condition to modify the roles ables of create the barcodes


Copied!
Copy

Filter the default path to the loading gif


Copied!
Copy

Filter the condition create or not the order barcode on new order

Params
 $order_id ID of the order.

Copied!
Copy

Filter the value of the barcode image when creating the order barcode

Params
 $the_value Formatted value.
 $order_id  ID of the order.
 $protocol  Current protocol.
 $value     Current value.

Copied!
Copy

Filter the default product types allowed to create barcodes on

Params
 array 'products' by defaul (simple products).
 $post  Post object.

Copied!
Copy

Filter the protocol when creating the products barcodes

Params
 $protocol   Current protocol.
 $the_value  Current value.

Copied!
Copy

Filter the value when creating the products barcodes

Params
 $the_value  Default the_value.
 $product_id ID of the product.
 $protocol   Current protocol.
 $value      Current value.

Copied!
Copy

Filter the condition to show or hide the barcode section in the edit product page


Copied!
Copy

Filter the condition to skip the check in the barcode generation


Copied!
Copy

Filter the query when creating the document to be printed

Params
 array $post_type, $post_status, $post_per_page, $fields, $meta_query.

Copied!
Copy

Filter the post types on the query when creating the document to be printed

Params
 array $post_types Default post types to be retrieved.

Copied!
Copy

Filter the mpdf arguments when creating the document to be printed

Params
 array $autoScriptToLang, $autoLangToFont.

Copied!
Copy

Filter the HTML before rendering the barcode to be printed

Params
 $html Default HTML.

Copied!
Copy

Filter the file name of the pdf that's gonna be printed

Params
 $pdf_filename Default file name.

Copied!
Copy

Filter the path of the pdf that's gonna be printed


Copied!
Copy

Filter the query when creating the document to be printed

Params
 array $post_type, $post_status, $post_per_page, $fields, $meta_query.

Copied!
Copy

Filter the post types on the query when creating the document to be printed

Params
 array $post_types Default post types to be retrieved.

Copied!
Copy

Filter the mpdf arguments when creating the document to be printed

Params
 array $autoScriptToLang, $autoLangToFont.

Copied!
Copy

Filter the HTML before rendering the barcode to be printed

Params
 $html Default HTML.

Copied!
Copy

Filter the file name of the pdf that's gonna be printed

Params
 $pdf_filename Default file name.

Copied!
Copy

Filter the path of the pdf that's gonna be printed


includes/class-yith-woocommerce-barcodes.php

Copied!
Copy

Filter the condition to force the sequential order number


Copied!
Copy

Filter the value of the barcode image when creating the order barcode

Params
 $the_value Formatted value.
 $order_id  ID of the order.
 $protocol  Current protocol.
 $value     Current value.

Copied!
Copy

Filter the file name of the image from the server

Params
 $image_name Formatted image name (.png by default).
 $obj_id     ID of current obj.
 $protocol   Current protocol.
 $value      Current value.

Copied!
Copy

Filter the protocol when creating the products barcodes

Params
 $protocol   Current protocol.
 $the_value  Current value.

Copied!
Copy

Filter the value when creating the products barcodes

Params
 $the_value  Default the_value.
 $product_id ID of the product.
 $protocol   Current protocol.
 $value      Current value.

Copied!
Copy

Filter the sources of the barcode when rendering it

Params
 $barcode_filename      Image path.
 $barcode_display_value Display value.
 $barcode_protocol      Protocol.
 $context               Context of the rendering.

Copied!
Copy

Filter the HTML of the entire barcode tag before printing it

Params
 $barcode_html  Formatted barcode html.
 $barcode       Barcode obj.
 $barcode_value Barcode value.
 $barcode_src   All the sources of the barcode.

Copied!
Copy

Filter the HTML of the entire barcode before printing it

Params
 $src           Formatted barcode html.
 $barcode_src   Formatted barcode html.
 $barcode_value Barcode value.
 $barcode       Barcode obj.
 $show_value    Whether to show barcode value or not.
 $layout        Optional layout for the barcode.

Copied!
Copy

Filter the condition to show the value of the barcode when displaying it

Params
 $obj           Formatted barcode html.

includes/class-yith-barcode.php

Copied!
Copy

Filter the function that displays the value of the barcode

Params
 $display_value Current value.
 $this          'YITH_Barcode' class.

Copied!
Copy

Filter the formatted value of the ean13 protocol


Copied!
Copy

Filter the coindition to avoid the conversion from EAN to UPC protocol


Copied!
Copy

Filter the formatted value of the upc protocol

Params
 $formatted_value Formatted value.
 $value           Value.

Copied!
Copy

Filter the coindition to avoid the conversion from EAN to UPC protocol


Copied!
Copy

Filter the formatted value of the display in the upc protocol

Params
 bool $check            Check function retrieves true on sucess.
 array $formatted_value Formatted value.

Copied!
Copy

Filter the formatted value when creating the image of the QR code

Params
 $formatted_value Formatted value.
 $protocol        Current protocol to create the image.
 $value           Current value to create the image.

Copied!
Copy

Filter the name of the image of the QR code

Params
 $image_filename Name of the image file.