Description
Increment the downloads for this theme versionThe field incremented depends upon the &action=update/download It's OK for the count to start from blank ( = 0 )
Usage
oikth_increment_downloads( $id );Parameters
- $id
- ( mixed ) required –
Returns
voidSource
File name: oik-themes/feed/oik-themes-feed.phpLines:
1 to 6 of 6
function oikth_increment_downloads( $id ) { $action = bw_array_get( $_REQUEST, "action", "download" ); $count = get_post_meta( $id, "_oiktv_{$action}_count", true ); $new_count = $count + 1; $success = update_post_meta( $id, "_oiktv_{$action}_count", $new_count, $count ); }View on GitHub
Invoked by
Calls
Call hooks
API Letters:
