May be this hook is used after post ad
osc_add_hook('posted_item', 'check_item_spam');
function check_item_spam($xyz) {
if ($is_spam) {
// Code to be executed if the condition is true
Set item value to spam ( ad not live)
} else {
// Code to be executed if the condition is false.
Set value is not spam(ad will live on site)
}
}
Need help, how to set based on this example. Set value if item is spam of posted item.