Пример #1
0
function sp_setExcerpt($idPost, $excerpt)
{
    $idPost = (int) $idPost;
    $access = new AccessData();
    $access->query($access->prepare("UPDATE " . StudyPressDB::getTableNamePostWP() . " SET post_excerpt ='%s'  WHERE ID = '" . $idPost . "'", $excerpt));
}