Skip to content

Commit 4e9b891

Browse files
committed
Add tag to the cloudinary_allow_glb_upload hook
1 parent 260272a commit 4e9b891

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

php/media/class-gallery.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -694,14 +694,14 @@ public function setup_hooks() {
694694
add_filter( 'cloudinary_admin_pages', array( $this, 'register_settings' ) );
695695

696696
/**
697-
* Filter to allow GLB 3D model files to be uploaded.
697+
* Filter the media context query.
698698
*
699-
* WARNING: This is an experimental hook. The only place where GLB files can be used
700-
* is in the Cloudinary Gallery block.
699+
* @hook cloudinary_media_context_query
700+
* @since 3.2.0
701701
*
702-
* @param bool $allow_glb_upload Whether to allow GLB files to be uploaded.
702+
* @param $media_context_query {string} The default media context query.
703703
*
704-
* @return bool
704+
* @return {string}
705705
*/
706706
if ( apply_filters( 'cloudinary_allow_glb_upload', false ) ) {
707707
add_filter( 'upload_mimes', array( $this, 'add_glb_mime' ), 20, 1 );

0 commit comments

Comments
 (0)