Created
February 23, 2024 15:53
-
-
Save LaxusCroco/406bc63a36310fee4e4a23e5d4f35828 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'jet-form-builder/render/media-field/attributes', function( $attrs ) { | |
if ( false === strpos( $attrs['class'], 'capture-only' ) ) { | |
return $attrs; | |
} | |
$attrs['capture'] = 'environment'; | |
return $attrs; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment