Beispiel #1
0
function removeBuildingFromFavorites()
{
    $result = false;
    $user_id = $_POST['user_id'];
    $building_id = $_POST['building_id'];
    $result = Idp_Main::removeBuildingFromFavorites($user_id, $building_id);
    if ($result !== false) {
        echo "glyphicon glyphicon-star-empty";
    } else {
        echo "glyphicon glyphicon-star";
    }
    wp_die();
    // this is required to terminate immediately and return a proper response
}