Site icon Hip-Hop Website Design and Development

Utilizing wp_list_table methods to set off replace operate "inline"?

Okay, i’ve used wp_list_table to learn knowledge from a customized db desk and that i like to have the ability to replace the database desk by clicking the correspondig cell. Defaults are 0 and when clicked the worth is about to 1.

so by clicking the cell updateVisitor() will likely be triggered “inline”

my operate which i is not a part of the Guests prolong WP_list_table class

operate updateVisitor($id){
    world $wpdb;
    $question = $wpdb->put together( "UPDATE tbl_visitor SET visitorPayed =BINARY(visitorPayed=1) WHERE visitorID = %d", intval($id) );
    $outcome = $wpdb->question( $question );
}