WordPress.org

Ready to get started?Download WordPress

Forums

YOP Poll
how do i link to a php file in the template after voting (2 posts)

  1. agent14
    Member
    Posted 4 months ago #

    on the after vote page i would like to have a mini poll of my own, it's been designed already, but i cant get it sorted. how do i call the php file? i've tried putting it in different locations and it isnt working...help. thanks

    an example of what i mean is below

    <form name="web_form" id="web_form" method="post" action= "call.php">

    https://wordpress.org/plugins/yop-poll/

  2. YOP
    Member
    Plugin Author

    Posted 4 months ago #

    Hi agent14,

    If can add a poll of your own in the inc/yop-poll-model.php file, specifically at the end of return_poll_html function.

    In this function, before return $template; add
    if( $this->is_voted() ) { } and between the braces add

    $template .= function_that_returns_custom_poll(); so in the end you'll have

    if( $this->is_voted() ) {
    $template .= function_that_returns_custom_poll(); }
    return $template;

    Regards,

    YOP Team

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.