WP YouTube Lyte icon
Performance & Caching

WP YouTube Lyte hooks reference

  • By Frank Goossens
  • v1.7.32
  • Updated

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.

functions.phpyour child theme
// 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

  • wp-youtube-lyte.php line 115 · used in 2 places
    /**
     * bail if AMP or if LYTE feed disabled and is_feed
     */
    apply_filters( 'lyte_filter_dofeed', true );
  • wp-youtube-lyte.php line 331 · used in 2 places
    /**
     * API: filter hook to override thumbnail URL
     */
    apply_filters( 'lyte_match_thumburl', $thumbUrl, $vid );
  • wp-youtube-lyte.php line 869
    /**
     * API: action hook to allow extra actions or filters to be added
     */
    do_action( 'lyte_actionsfilters' );
  • wp-youtube-lyte.php line 413
    /**
     * API: filter hook to postparse the_content before returning
     */
    apply_filters( 'lyte_content_postparse', $the_content );
  • wp-youtube-lyte.php line 126
    /**
     * 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
    wp-youtube-lyte.php line 601
    /**
     * API: filter hook to change css
     */
    apply_filters( 'lyte_css', $lyte_css );
  • wp-youtube-lyte.php line 296
    /**
     * API: filter hook to disable captions
     */
    apply_filters( 'lyte_docaptions', $doCaptions );
  • wp-youtube-lyte.php line 162
    /**
     * 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] );
  • options.php line 81 · used in 4 places
    apply_filters( 'lyte_filter_yt_api_key', $lyte_yt_api_key );
  • widget_text

    filter
    widget.php line 14 · used in 3 places
    apply_filters( 'widget_text', $instance['WYLtext'], $instance );
  • wp-youtube-lyte.php line 594 · used in 2 places
    apply_filters( 'lyte_filter_local_thumb_doublecheck', false );
  • wp-youtube-lyte.php line 146 · used in 2 places
    apply_filters( 'lyte_kinda_textureize', false );
  • lytePartners.php line 10 · used in 2 places
    apply_filters( 'wp-youtube-lyte_filter_show_partner_tabs', true );
  • lytePartners.php line 89 · used in 2 places
    apply_filters( 'wp-youtube-lyte_settingsscreen_remotehttp', true );
  • wp-youtube-lyte.php line 631
    apply_filters( 'excerpt_length', $excerpt_length );
  • excerpt_more

    filter
    wp-youtube-lyte.php line 632
    apply_filters( 'excerpt_more', ' ' . '[…]' );
  • wp-youtube-lyte.php line 269
    apply_filters( 'lyte_disclaimer', $disclaimer );
  • wp-youtube-lyte.php line 586
    apply_filters( 'lyte_do_mobile', false );
  • wp-youtube-lyte.php line 130
    apply_filters( 'lyte_eats_yframes', true );
  • wp-youtube-lyte.php line 837
    apply_filters( 'lyte_filter_disable_thumb_fallback', false );
  • wp-youtube-lyte.php line 763
    apply_filters( 'lyte_filter_do_gutenberg', true );
  • widget.php line 54
    apply_filters( 'lyte_filter_widget_thumb', $WYLthumb, $WYLid );
  • wp-youtube-lyte.php line 471
    apply_filters( 'lyte_filter_ytapi_playlist_params', 'playlists?part=snippet%2C+id&id=' . $vid . '&key=' . $lyte_yt_api_key );
  • wp-youtube-lyte.php line 535
    apply_filters( 'lyte_filter_ytapi_pre_store_results', $_thisLyte, $yt_resp_array );
  • wp-youtube-lyte.php line 474
    apply_filters( 'lyte_filter_ytapi_video_params', 'videos?part=id%2C+snippet%2C+contentDetails&id=' . $vid . '&key=' . $lyte_yt_api_key );
  • wp-youtube-lyte.php line 389
    apply_filters( 'lyte_match_postparse_template', $lytetemplate, $templateType, $yt_resp_array );
  • wp-youtube-lyte.php line 142
    apply_filters( 'lyte_remove_wpautop', false );
  • lyte_settings

    filter
    wp-youtube-lyte.php line 109
    apply_filters( 'lyte_settings', $lyteSettings );
  • options.php line 461
    apply_filters( 'lyte_settingsscreen_remotehttp', true );
  • wp-youtube-lyte.php line 108
    apply_filters( 'lyte_use_internal_lazyloader', false );
  • wp-youtube-lyte.php line 439
    apply_filters( 'lyte_ytapi_cache_gracetime', 2 * 30 * 24 * 60 * 60 );
  • wp-youtube-lyte.php line 442
    apply_filters( 'lyte_ytapi_check_cache', true );
  • wp-youtube-lyte.php line 532
    apply_filters( 'lyte_ytapi_description', $_thisLyte['description'] );
  • the_content

    filter
    wp-youtube-lyte.php line 628
    apply_filters( 'the_content', $text );
  • widget_title

    filter
    widget.php line 13
    apply_filters( 'widget_title', $instance['WYLtitle'] );
  • wp-youtube-lyte.php line 636
    apply_filters( 'wp_trim_excerpt', $text, $raw_excerpt );
  • options.php line 490
    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: