3D Scene Viewer icon
eCommerce & WooCommerce

3D Scene Viewer hooks reference

  • By wprj
  • v1.1.2
  • Updated

3D Scene Viewer 1.1.2 has 0 actions and 6 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.

functions.phpyour child theme
// Change a value 3D Scene Viewer is about to use
add_filter( 'scene3d_elements_descriptions', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

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

  • views/admin/metaboxes/elements.php line 15
    apply_filters( 'scene3d_elements_descriptions', [ '' => __( 'Select one type of element', 'scene3d' ), 'glb' => __( 'glTF v2.0 file (.glb or .gltf format)', 'scene3d' ), 'fbx' => __( 'FBX ASCII version 7.0 and newer, or binary version 6400 and newer.', 'scene3d', ), 'stl' => __( 'STL file, binary or ASCII', 'scene3d', ), 'obj' => __( 'OBJ file (Wavefront)', 'scene3d', ), 'spotlight' => __( 'This light gets emitted from a single point in one ... );
  • views/admin/metaboxes/elements.php line 28
    apply_filters( 'scene3d_elements_options', [ '' => '--' . __( 'Select an element', 'scene3d' ) . '--', 'glb' => __( 'GLTF/GLB file', 'scene3d' ), 'fbx' => __( 'FBX file', 'scene3d' ), 'stl' => __( 'STL file', 'scene3d' ), 'obj' => __( 'OBJ file', 'scene3d' ), 'spotlight' => __( 'Spotlight', 'scene3d' ), 'pointlight' => __( 'Point light', 'scene3d' ), 'floor' => __( 'Floor', 'scene3d' ), ] );
  • includes/admin/Dashboard.php line 339
    apply_filters( 'scene3d_file_types', $checked_type_ext, $file, $extension );
  • includes/admin/Dashboard.php line 277
    apply_filters( 'scene3d_mime_types', $types );
  • includes/woocommerce/product-image.php line 15
    apply_filters( 'woocommerce_product_thumbnails_columns', 4 );

Generated from 3D Scene 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.

Plugin 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 this

Not 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: