3D Viewer 2.1.0 has 11 actions and 24 filters, read directly from its source code on Nov 17, 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 3D Viewer fires an action
add_action( 'bfields_loaded', function() {
// Your code runs here.
}, 10, 1 );
// Change a value 3D Viewer is about to use
add_filter( 'bfields_choices_allowed', function( $allowed, $field, $unique ) {
// Change $allowed here.
return $allowed;
}, 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 the data about to be written. Bridged to csf_{$unique}_save. */ apply_filters( "bfields_{$unique}_save", $data, $unique ); -
/** * Filter whether the current user may list a field's options. */ apply_filters( 'bfields_choices_allowed', $allowed, $field, $unique ); -
/** * Filter how long the fallback keeps saying "Loading" once the page's scripts * have run, if the bundle has not mounted, before it offers the switch. In * seconds. */ apply_filters( 'bfields_fallback_delay', 5 ); -
/** * Filter the "switch to the classic interface" URL for a screen. */ apply_filters( 'bfields_fallback_url', '', $unique ); -
/** * Filter a sanitized field value. */ apply_filters( "bfields_sanitize_{$field['type']}", $value, $field ); -
/** * Filter the finished schema for a screen, after normalisation. */ apply_filters( 'bfields_schema', $schema, $unique ); -
/** * Filter the authoring type => core renderer type table. */ apply_filters( 'bfields_type_map', self::TYPE_MAP ); -
/** * This filter is documented in wp-admin/includes/post.php */ apply_filters( 'filter_block_editor_meta_boxes', $boxes ); -
do_action( "bfields_{$unique}_save_after", $row, $unique ); -
do_action( "bfields_{$unique}_save_before", $row, $unique ); -
do_action( "bfields_{$unique}_saved", $row, $unique ); -
do_action( "bfields_{$this->unique}_saved", $stored, $this->unique ); -
do_action( 'bfields_loaded' ); -
apply_filters( 'bfields_sanitize', $value, $field ); -
apply_filters( 'bfields_update_in_place', true, $post_id, $unique ); -
apply_filters( 'bfields_update_in_place_values', $values, $post_id, $unique ); -
apply_filters( 'bp3d_admin_ui', $mode ); -
apply_filters( 'bp3d_admin_ui_default', self::MODERN ); -
apply_filters( 'bp3d_admin_ui_surface', $mode, $surface ); -
apply_filters( 'bp3d_classic_model_attribute', $finalData ); -
do_action( 'bp3d_dokan_vendor_model_saved', $product_id, $plan['changed'] ?? [] ); -
apply_filters( 'bp3d_fluentcart_model_attribute', $attributes, $id ); -
do_action( 'bp3d_fs_loaded' ); -
apply_filters( 'bp3d_gutenberg_model_attribute', $attributes ); -
apply_filters( 'bp3d_is_marketplace_vendor', $is_vendor, $user_id ); -
do_action( 'bp3d_product_model_after' ); -
do_action( 'bp3d_product_model_before' ); -
apply_filters( 'bp3d_update_in_place', (bool) $on ); -
apply_filters( 'bp3d_woocommerce_model_attribute', $finalData ); -
do_action_ref_array( "csf_{$unique}_{$event}", $csf_args($data, $context) ); -
apply_filters_ref_array( "csf_{$unique}_save", $csf_args($data, $context) ); -
do_action( 'woocommerce_product_thumbnails' ); -
apply_filters( 'woocommerce_product_thumbnails_columns', 4 ); -
apply_filters( 'woocommerce_single_product_image_gallery_classes', [ 'woocommerce-product-gallery', 'woocommerce-product-gallery--' . ($post_thumbnail_id ? 'with-images' : 'without-images'), 'woocommerce-product-gallery--columns-' . absint($columns), 'images', ] ); -
apply_filters( 'woocommerce_single_product_image_thumbnail_html', $html, $post_thumbnail_id );
Generated from 3D Viewer'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: