WordPress filter hook

wpo_wcpdf_meta_box_actions

Fired by 3 WordPress plugins, running on 300K+ sites between them.

How to use wpo_wcpdf_meta_box_actions

It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'wpo_wcpdf_meta_box_actions', function( $meta_box_actions, $arg2 ) {
	// Change $meta_box_actions here.
	return $meta_box_actions;
}, 10, 2 );

Argument names come from PDF Invoices & Packing Slips for WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

3 plugins that fire wpo_wcpdf_meta_box_actions

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. PDF Invoices & Packing Slips for WooCommerce icon PDF Invoices & Packing Slips for WooCommerce300,000+ installs apply_filters( 'wpo_wcpdf_meta_box_actions', $meta_box_actions, $order->get_id() ) includes/Admin.php:589
  2. TicketBAI Facturas para WooCommerce icon TicketBAI Facturas para WooCommerce70+ installs apply_filters( 'wpo_wcpdf_meta_box_actions', $meta_box_actions, $item['pedido_numero'] ) FTBAI_facturas.php:196
  3. Invoice management for Woocommerce icon Invoice management for WoocommerceFewer than 10 installs apply_filters( 'wpo_wcpdf_meta_box_actions', $meta_box_actions, $post_id ) admin/editor.class.php:774

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.