WP YouTube Lyte 1.7.32 has 1 actions and 36 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when WP YouTube Lyte fires an action
add_action( 'lyte_actionsfilters', function() {
// Your code runs here.
}, 10, 1 );
// Change a value WP YouTube Lyte is about to use
add_filter( 'lyte_filter_dofeed', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
lyte_filter_dofeed
filter/** * bail if AMP or if LYTE feed disabled and is_feed */ apply_filters( 'lyte_filter_dofeed', true ); -
lyte_match_thumburl
filter/** * API: filter hook to override thumbnail URL */ apply_filters( 'lyte_match_thumburl', $thumbUrl, $vid ); -
lyte_actionsfilters
action/** * API: action hook to allow extra actions or filters to be added */ do_action( 'lyte_actionsfilters' ); -
lyte_content_postparse
filter/** * API: filter hook to postparse the_content before returning */ apply_filters( 'lyte_content_postparse', $the_content ); -
lyte_content_preparse
filter/** * API: filter hook to preparse the_content, e.g. to force normal youtube links * to be parsed */ apply_filters( 'lyte_content_preparse', $the_content ); -
lyte_css
filter/** * API: filter hook to change css */ apply_filters( 'lyte_css', $lyte_css ); -
lyte_docaptions
filter/** * API: filter hook to disable captions */ apply_filters( 'lyte_docaptions', $doCaptions ); -
lyte_match_preparse_fragment
filter/** * API: filter hook to preparse fragment in a httpv-url, e.g. to force * hqThumb=1 or showinfo=0 */ apply_filters( 'lyte_match_preparse_fragment', $match[12] ); -
lyte_filter_yt_api_key
filterapply_filters( 'lyte_filter_yt_api_key', $lyte_yt_api_key ); -
widget_text
filterapply_filters( 'widget_text', $instance['WYLtext'], $instance ); -
apply_filters( 'lyte_filter_local_thumb_doublecheck', false ); -
lyte_kinda_textureize
filterapply_filters( 'lyte_kinda_textureize', false ); -
apply_filters( 'wp-youtube-lyte_filter_show_partner_tabs', true ); -
apply_filters( 'wp-youtube-lyte_settingsscreen_remotehttp', true ); -
excerpt_length
filterapply_filters( 'excerpt_length', $excerpt_length ); -
excerpt_more
filterapply_filters( 'excerpt_more', ' ' . '[…]' ); -
lyte_disclaimer
filterapply_filters( 'lyte_disclaimer', $disclaimer ); -
lyte_do_mobile
filterapply_filters( 'lyte_do_mobile', false ); -
lyte_eats_yframes
filterapply_filters( 'lyte_eats_yframes', true ); -
apply_filters( 'lyte_filter_disable_thumb_fallback', false ); -
lyte_filter_do_gutenberg
filterapply_filters( 'lyte_filter_do_gutenberg', true ); -
lyte_filter_widget_thumb
filterapply_filters( 'lyte_filter_widget_thumb', $WYLthumb, $WYLid ); -
apply_filters( 'lyte_filter_ytapi_playlist_params', 'playlists?part=snippet%2C+id&id=' . $vid . '&key=' . $lyte_yt_api_key ); -
apply_filters( 'lyte_filter_ytapi_pre_store_results', $_thisLyte, $yt_resp_array ); -
apply_filters( 'lyte_filter_ytapi_video_params', 'videos?part=id%2C+snippet%2C+contentDetails&id=' . $vid . '&key=' . $lyte_yt_api_key ); -
apply_filters( 'lyte_match_postparse_template', $lytetemplate, $templateType, $yt_resp_array ); -
lyte_remove_wpautop
filterapply_filters( 'lyte_remove_wpautop', false ); -
lyte_settings
filterapply_filters( 'lyte_settings', $lyteSettings ); -
apply_filters( 'lyte_settingsscreen_remotehttp', true ); -
lyte_use_internal_lazyloader
filterapply_filters( 'lyte_use_internal_lazyloader', false ); -
lyte_ytapi_cache_gracetime
filterapply_filters( 'lyte_ytapi_cache_gracetime', 2 * 30 * 24 * 60 * 60 ); -
lyte_ytapi_check_cache
filterapply_filters( 'lyte_ytapi_check_cache', true ); -
lyte_ytapi_description
filterapply_filters( 'lyte_ytapi_description', $_thisLyte['description'] ); -
the_content
filterapply_filters( 'the_content', $text ); -
widget_title
filterapply_filters( 'widget_title', $instance['WYLtitle'] ); -
wp_trim_excerpt
filterapply_filters( 'wp_trim_excerpt', $text, $raw_excerpt ); -
apply_filters( 'wp-youtube-lyte_filter_settingsscreen_tabs', array( 'lyte_settings_page' => __('Main', 'wp-youtube-lyte' ) ) );
Generated from WP YouTube Lyte's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: