Tuesday, September 28, 2010

WordPress: Using the user_has_cap Filter

I finally worked out a WordPress plugin of mine that utilizes the user_has_cap filter. Thankfully John B. on the wp-hackers list had an example of how he used it in his plugin, since there was practically no documentation on this filter!

A simple example of mine would be:

function a_user_cap($allcaps, $cap, $args) {
$allcaps['upload_files'] = true;
return $allcaps;
}

add_filter('user_has_cap', 'a_user_cap', 10, 3);


Now, you can see it's basically giving the "upload_files" capability to all users. Thank you WP Hackers!

Cheers!

Wednesday, September 8, 2010

Official Google Blog: Search: now faster than the speed of type

Official Google Blog: Search: now faster than the speed of type

I really can't say too much about Google Instant. Why? Well, because it's apparently not rolled out in my area right now (which ironically happens to be right around the corner from Google).

Ah well, anyhow, for those of you who have it enabled let me know how it is.