Doc-section

Actions

  • template_redirect (priority 1) – LH_Polls_Voting::handle_form_post – processes vote/change_vote form submissions, exits via redirect on POST.
  • template_redirect (priority 5) – LH_Polls_Embed::maybe_serve_embed – serves the self-contained embed HTML document for ?embed requests. Runs after the voting handler so a real vote submission is processed before the embed re-renders.
  • deleted_comment – LH_Polls_Comments::on_comment_deleted – keeps lh_poll_votes in sync when a vote comment is deleted via the WP comments screen.

Filters

  • oembed_response_data – returns an iframe-based rich oEmbed response for lh_poll posts (600px wide, height estimated from option count).
  • the_content – injects poll markup + JS tag on the standalone (non-embed) singular view.
  • comments_clauses / comment_feed_where / get_comments_number – exclude lh_vote-type comments from standard queries, feeds, and displayed counts on non-poll posts.
  • comments_open / comments_array – disable the comment form/list UI on lh_poll posts entirely (votes are stored as comments internally but never shown as a comment thread).