ACF type ‘oembed’ and YouTube Lyte
-
Hi there,
On the site that I am working on, there are YouTube videos embedded via ACF with a filed type set to ‘oembed’.
There’s a suggestion on using Lyte with ACF on their own support forum, and I also noticed the same advice here, but it seems that it only applies for custom fields with type ‘text’:function my_acf_format_value_v5( $value, $post_id, $field ) { $value = lyte_parse($value); return $value; } add_filter('acf/format_value/name=field_name', 'my_acf_format_value_v5', 10, 3);
Does anyone have a suggestion on using ‘oembed’ type of custom field with WP YouTube Lyte?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘ACF type ‘oembed’ and YouTube Lyte’ is closed to new replies.