acf/fields/oembed/allow_discovery
acf/fields/oembed/allow_discovery
Appears in: advanced-custom-fields.6.8.3
Hook Type: filter
Displaying hooks found in version: advanced-custom-fields.6.8.3apply_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 ) ), );