First WordPress plugin

First WordPress plugin /* Plugin Name: crud operation * Plugin URI: www.datum.com * description: a plugin for performing basic crud operations * Vesion: 1.0 * Author URI: www.datum.com * license: GP2 */function crud_setUserCaps($param) {    $editor = get_role(strtolower($param));    $editor->add_cap(‘edit_download_item’);    $editor->add_cap(‘read_download_item’);    $editor->add_cap(‘delete_download_item’);    $editor->add_cap(‘edit_download_items’);    $editor->add_cap(‘delete_download_items’);    $editor->add_cap(‘read_download_items’);}function crud_unsetUserCaps($param) {    $editor = get_role(strtolower($param)); … read more →