acf/fields/oembed/allow_discovery

acf/fields/oembed/allow_discovery

Hook Type: filter

See hook in core

Displaying hooks found in version: advanced-custom-fields.6.8.3

apply_filters('acf/fields/oembed/allow_discovery') is found 1 times:

  • /includes/fields/class-acf-field-oembed.php line 194
    			 *
    			 * @param bool  $allow_discovery Whether discovery is permitted. Default: true for users with edit_posts, false otherwise.
    			 * @param array $field           The oEmbed field array.
    			 */
    			$allow_discovery = (bool) apply_filters( 'acf/fields/oembed/allow_discovery', current_user_can( 'edit_posts' ), $field );
    
    			// vars
    			$response = array(
    				'url'  => $args['s'],
    				'html' => $this->wp_oembed_get( $args['s'], $field['width'], $field['height'], array( 'discover' => $allow_discovery ) ),
    			);