Flexible PDF Coupons 1.14.14 has 17 actions and 56 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Flexible PDF Coupons fires an action
add_action( 'fc/core/product/simple/save', function( $product_id, $object ) {
// Your code runs here.
}, 10, 2 );
// Change a value Flexible PDF Coupons is about to use
add_filter( 'fc/core/email/meta', function( $meta, $order_id, $meta2 ) {
// Change $meta here.
return $meta;
}, 10, 3 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Filter whether we should send email or not. */ apply_filters( 'fc/core/email/meta', $meta, $order_id, $meta ); -
/** * Fires after saving product data. */ do_action( 'fc/core/product/simple/save', $product_id, $this ); -
/** * Fires after saving variation data. */ do_action( 'fc/core/product/variation/save', $variation_id, $i, $this ); -
/** * Fires after saving the settings. */ do_action( 'fc/core/settings/ready' ); -
/** * Filters setting tabs. */ apply_filters( 'fc/core/settings/tabs', $this->tabs ); -
/** * Fires after saving the tab settings. */ do_action( 'fc/core/settings/tabs/saved', $tab, $this->options_container ); -
/** * Set coupon data before save. */ apply_filters( 'fcpdf/core/coupon/before/create', $coupon, $order_id, $item ); -
/** * Filters coupon code. */ apply_filters( 'fcpdf/core/coupon/code', $coupon_code, $this->get_prefix(), $this->get_suffix(), $this->item, $this->product ); -
/** * Defines coupon code length (without prefix). */ apply_filters( 'fcpdf/core/coupon/code/length', $length ); -
/** * Defines coupon code prefix. */ apply_filters( 'fcpdf/core/coupon/code/prefix', $prefix, $this->item, $this->product ); -
/** * Define coupon code suffix. */ apply_filters( 'fcpdf/core/coupon/code/suffix', $suffix, $this->item, $this->product ); -
/** * Define own font data or add new fonts. */ apply_filters( 'fcpdf/core/fonts/data', $fonts, $default_font_data, $fonts_data ); -
/** * Define your own font directory or add to an existing one. */ apply_filters( 'fcpdf/core/fonts/dir', $default_font_dir ); -
/** * Define own config for mpdf. */ apply_filters( 'fcpdf/core/mpdf/config', $config->get() ); -
/** * Define own tmp dir for mpdf. */ apply_filters( 'fcpdf/core/mpdf/tmp', trailingslashit($upload_dir['basedir']) . 'flexible-coupons/tmp/' ); -
/** * Fire before download. */ do_action( 'fcpdf/core/pdf/download/headers', $coupon_data ); -
/** * Define name for PDF downloaded from URL. */ apply_filters( 'fcpdf/core/pdf/filename', $full_name, $name, $coupon_data ); -
/** * Filters resolvers for setting templates. */ apply_filters( 'fcpdf/settings/template_resolvers', [new DirResolver(__DIR__ . '/Views'), new DefaultFormFieldResolver()] ); -
/** * Add your own shortcodes to replace. */ apply_filters( 'flexible_coupons_shortcode_replacements', $this->replacements, $this->shortcode_values ); -
apply_filters( 'wpdesk_tracker_do_not_ask', false ); -
apply_filters( 'fcpdf/settings/general/fields', $fields, $this->get_tab_slug() ); -
apply_filters( 'wpdesk_tracker_enabled', $tracker_enabled ); -
apply_filters( 'fc/field/code-import-list/options', ['' => \__('Disabled', 'flexible-coupons')] ); -
apply_filters( 'fc/field/email-template-list/options', ['' => \__('Disabled', 'flexible-coupons')] ); -
apply_filters( 'wpdesk_track_plugin_deactivation', $plugins ); -
apply_filters( 'wpdesk_tracker_admin_email', \get_option('admin_email') ); -
apply_filters( 'wpdesk_tracker_use_testdata', \false ); -
apply_filters( 'core/pdf/items/get_qr_code_html', $object ); -
apply_filters( 'fc/core/email/should_send_email', \true, $email, $order_id, $meta, $meta_data ); -
do_action( 'fc/core/init', new PluginAccess($renderer, $logger, $persistence, $pdf, $download, $shortcodes, $post_meta, $product_fields, $this->plugin_version) ); -
apply_filters( 'fc/core/shortcodes/definition', $this->shortcodes_definition() ); -
apply_filters( 'fcpdf/core/coupon/expiry', $date ); -
apply_filters( 'fcpdf/core/editor/fonts', $fonts ); -
apply_filters( 'fcpro/core/coupon/after/save', $coupon_data ); -
apply_filters( 'flexible_coupons_apply_logic_rules', $fields, $post_data ); -
do_action( 'flexible_coupons_body_after' ); -
do_action( 'flexible_coupons_body_before' ); -
do_action( 'flexible_coupons_head' ); -
apply_filters( 'wcml_raw_price_amount', 100, $currency ); -
do_action( 'woocommerce_email_header', $email_heading, $email ); -
woocommerce_settings_api_sanitized_fields_{$this->settings->id}
filter Copy link Customise this hookapply_filters( "woocommerce_settings_api_sanitized_fields_{$this->settings->id}", $this->settings->settings ); -
woocommerce_shipping_{$this->method->id}_instance_settings_values
filter Copy link Customise this hookapply_filters( "woocommerce_shipping_{$this->method->id}_instance_settings_values", $this->method->instance_settings, $this->method ); -
apply_filters( 'woocommerce_template_overrides_scan_paths', ['WooCommerce' => \WC()->plugin_path() . '/templates/'] ); -
do_action( 'wp_builder_before_init', $plugin ); -
do_action( 'wp_builder_before_plugin_init', $plugin ); -
apply_filters( 'wp_builder_plugin_class', $plugin_info->get_class_name() ); -
apply_filters( 'wpdesk_can_register_plugin', \true, $this->plugin_info ); -
apply_filters( 'wpdesk_can_start_tracker', \true, $this->plugin_info ); -
apply_filters( 'wpdesk_is_wp_log_capture_permitted', \true ); -
do_action( 'wpdesk_notice_dismissed_notice', $noticeName, $source ); -
apply_filters( 'wpdesk_tracker_data', $data ); -
apply_filters( 'wpdesk_tracker_deactivation_data', $params ); -
do_action( 'wpdesk_tracker_initialized', $this ); -
apply_filters( 'wpdesk_tracker_instance', $this->tracker ); -
apply_filters( 'wpdesk_tracker_last_send_interval', \strtotime('-1 week') ); -
apply_filters( 'wpdesk_tracker_last_send_time', $last_send ); -
apply_filters_ref_array( 'wpdesk_tracker_notice_content', [\false, $username, $terms_url] ); -
apply_filters( 'wpdesk_tracker_notice_screens', [] ); -
apply_filters( 'wpdesk_tracker_send_override', $override ); -
apply_filters( 'wpdesk_tracker_show_testdata', \false ); -
do_action( 'wpdesk_tracker_started', $tracker, $this->plugin_info ); -
apply_filters( 'wpdesk/ltvdashboard/disable', \false ); -
apply_filters( "wpdesk/tracker/bucket/{$bucket}", null ); -
apply_filters( "wpdesk/tracker/bucket/{$this->plugin_slug}", $bucket ); -
apply_filters_ref_array( 'wpdesk/tracker/logo_file', [$logo_file, $this->shop] ); -
apply_filters_ref_array( 'wpdesk/tracker/logo_url', [$logo_url, $this->plugin_slug] ); -
do_action( 'wpdesk/tracker/plugin_started', $this->tracker, $this->plugin_basename, $this->plugin_slug, $this->get_bucket() ); -
apply_filters( "wpdesk/tracker/sender/{$this->basename}", $default_sender ); -
apply_filters( "wpdesk/tracker/sender/{$this->get_slug()}", $default_sender ); -
apply_filters_ref_array( 'wpdesk/tracker/shop_name', [$this->shops_usage_tracking_names[$this->shop] ?? $this->default_shop_name, $this->shop] ); -
apply_filters_ref_array( 'wpdesk/tracker/usage_tracking_page', [$usage_tracking_page, $this->shop] );
Generated from Flexible PDF Coupons's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: