Skip to content

Commit d6a0e39

Browse files
committed
Add tag to the cloudinary_allow_glb_upload hook
1 parent e8d7d86 commit d6a0e39

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

php/media/class-gallery.php

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

705705
/**
706-
* Filter to allow GLB 3D model files to be uploaded.
706+
* Filter the media context query.
707707
*
708-
* WARNING: This is an experimental hook. The only place where GLB files can be used
709-
* is in the Cloudinary Gallery block.
708+
* @hook cloudinary_media_context_query
709+
* @since 3.2.0
710710
*
711-
* @param bool $allow_glb_upload Whether to allow GLB files to be uploaded.
711+
* @param $media_context_query {string} The default media context query.
712712
*
713-
* @return bool
713+
* @return {string}
714714
*/
715715
if ( apply_filters( 'cloudinary_allow_glb_upload', false ) ) {
716716
add_filter( 'upload_mimes', array( $this, 'add_glb_mime' ), 20, 1 );

0 commit comments

Comments
 (0)