Luma Product Fields 1.3.1 has 21 actions and 19 filters, read directly from its source code on Nov 19, 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 Luma Product Fields fires an action
add_action( 'woocommerce_after_main_content', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Luma Product Fields is about to use
add_filter( 'luma_product_fields_allow_external_field_slug', function( $value, $slug ) {
// Change $value here.
return $value;
}, 10, 2 );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
-
/** * Allow external plugins to define non-LPF slugs that should be rendered as * simple text fields in the inline editor. */ apply_filters( 'luma_product_fields_allow_external_field_slug', false, $slug ); -
/** * Allow external data providers to inject values for unknown fields (e.g., * EAN, SKU, cost, stock, etc.) */ apply_filters( 'luma_product_fields_formatted_field_value', '', null, [ 'slug' => $field ], $post_id, $links ); -
/** * Hook: woocommerce_after_main_content. */ do_action( 'woocommerce_after_main_content' ); -
/** * Hook: woocommerce_after_shop_loop. */ do_action( 'woocommerce_after_shop_loop' ); -
/** * Hook: woocommerce_archive_description. */ do_action( 'woocommerce_archive_description' ); -
/** * Hook: woocommerce_before_main_content. */ do_action( 'woocommerce_before_main_content' ); -
/** * Hook: woocommerce_before_shop_loop. */ do_action( 'woocommerce_before_shop_loop' ); -
/** * Hook: woocommerce_no_products_found. */ do_action( 'woocommerce_no_products_found' ); -
/** * Hook: woocommerce_shop_loop. */ do_action( 'woocommerce_shop_loop' ); -
/** * Fires when `luma_product_fields_action` does not correspond with an internal * method. */ do_action( "{LUMA_PRODUCT_FIELDS_PREFIX}_incoming_ajax_{$action}", $action ); -
/** * Allow extensions to expand the allowlist for admin field HTML. */ apply_filters( 'luma_product_fields_allowed_admin_fields_html', $allowed ); -
/** * Allow extensions to expand the allowlist for frontend field HTML. */ apply_filters( 'luma_product_fields_allowed_frontend_fields_html', $allowed ); -
/** * Fires when a dynamic taxonomy field attempted to use an existing taxonomy * slug. */ do_action( 'luma_product_fields_dynamic_taxonomy_exists', $field_data, $slug ); -
/** * Allow external plugins to return values for fields that are not registered * in the Luma Product Fields registry. */ apply_filters( 'luma_product_fields_external_field_value', null, $post_id, $slug ); -
/** * Filters the normalized field data array before it is saved. */ apply_filters( 'luma_product_fields_field_editor_form_data', $data ); -
/** * Filters the success message shown after a field is created or updated. */ apply_filters( 'luma_product_fields_field_editor_success_message', $message, $action, $data, $is_tax ); -
/** * Fires after a field definition is saved. */ do_action( 'luma_product_fields_field_saved', $data, $action, $is_tax, $original_slug ); -
/** * Filter the list of field definitions after merging and group filtering. */ apply_filters( 'luma_product_fields_get_all_fields', $fields, $group ); -
/** * Allow external plugins to handle saving for unknown fields. */ do_action( 'luma_product_fields_inline_save_field', $product_id, $field_slug ); -
/** * Hook: luma_product_fields_product_meta_end */ do_action( 'luma_product_fields_product_meta_end', $product ); -
/** * Hook: luma_product_fields_product_meta_start */ do_action( 'luma_product_fields_product_meta_start', $product ); -
/** * Filter: Modify or extend Luma Product Fields settings. */ apply_filters( 'luma_product_fields_settings_array', $settings, $current_tab, $tabs ); -
/** * Filter the in-page tabs shown for Luma Product Fields settings. */ apply_filters( 'luma_product_fields_settings_tabs', $tabs ); -
/** * For 3rd parties to customize taxonomies. */ do_action( 'luma_product_fields_taxonomy_registered', $slug, $args ); -
/** * Hook: woocommerce_sidebar. */ do_action( 'woocommerce_sidebar' ); -
apply_filters( 'woocommerce_show_page_title', true ); -
apply_filters( 'luma_product_fields_allowed_units', $units ); -
apply_filters( 'luma_product_fields_display_product_meta', $output, $product ); -
do_action( 'luma_product_fields_field_editor_after_label', $field ); -
do_action( 'luma_product_fields_field_editor_form_bottom', $field ); -
do_action( 'luma_product_fields_field_manager_actions' ); -
do_action( 'luma_product_fields_field_options_overview_table_head_start', $fields ); -
do_action( 'luma_product_fields_field_options_overview_table_row_start', $slug ); -
apply_filters( 'luma_product_fields_field_types', $core_types ); -
apply_filters( 'luma_product_fields_listview_column_value', null, $column_name, $item ); -
apply_filters( 'luma_product_fields_listview_columns', $columns ); -
do_action( 'luma_product_fields_migration_field_options', $field ); -
apply_filters( 'luma_product_fields_notification', $notice ); -
apply_filters( 'luma_product_fields_save_field', false, $product_id, $field_slug, $value ); -
apply_filters( 'luma_product_fields_unit_aliases', $aliases );
Generated from Luma Product Fields'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: