By Ed Reckers on January 10, 2012
How to update WordPress user role capabilities using a simple PHP script and WordPress user functions. I came upon this issue recently in which I had full access to a WordPress installation; files, database, etc., but my WordPress user account was originally added as an Editor or some lower role by a client/third party and I really needed to update to an Administrator role. Of course without the original Administrator account I couldn’t update my own role so I needed to create a script to cleanly edit user role/capabilities. Below is a script to change a WordPress user role using the WordPress function wp_update_user:
/*
* Updates user role using WordPress function wp_update_user.
*
* Simple script to be run at webroot. Update user_id and new_role to taste
* and run as regular PHP file on command line.
*
* @package WordPress
*/
require( './wp-load.php' );
// id of user to update
$user_id = 2;
/*
* Basic list of user roles
*
* administrator
* editor
* author
* contributor
* subscriber
*
*/
// user role to update to
$new_role = 'administrator';
// update user role using wordpress function
wp_update_user( array ('ID' => $user_id, 'role' => $new_role ) ) ;
You can take this and save it out as a file called manually-update-role.php or whatever you like. Open the file and update user_id and new_role and then run. Check that it ran successfully (the user role should of course be changed) and remove file. Run the file like so:
php manually-update-role.php
There are a couple pages on the web which I used as a resource:
The first 2 links above approach the problem in different ways. The first link; an answer from Stack Exchange updates the user object (and doesn’t include how to create a script for the code mentioned) and the 2nd link at Shine PHP has you editing the database directly, which in my case I could have easily done, but just seems a little messy and could really lead to some problems if fat-fingered. The Shine PHP site seems to be the same people that created and maintain the plugin
User Role Editor which is nice but overpowered for this particular use case. There’s really only about 2 resources that are easily searchable to help you edit user role capabilities in WordPress. I’ve added a script to that.
Posted in WordPress | Tagged bay area wordpress consultant, bay area wordpress developer, bay area wordpress development, bay area wordpress expert, san francisco wordpress consultant, san francisco wordpress developer, san francisco wordpress expert, scripts, wordpress, wordpress consultant, wordpress consultant san francisco, wordpress developer, wordpress expert, wordpress expert san francisco, wordpress plugin developer, wordpress plugins |
By Ed Reckers on January 6, 2012
Squishy is a Responsive WordPress Theme based on Theme Hybrid, Hybrid Core and 1140 CSS Grid. This is a Parent Theme used by Red Bridge Internet for quick deploy of Responsive WordPress Themes and projects.
Squishy is hosted on BitBucket:
It’s in active development and will be for a month or so.
Posted in Themes | Tagged html5, responsive, San Francisco web site development, san francisco wordpress consultant, san francisco wordpress plugin developers, san francisco wordpress theme designer, san francisco wordpress theme developer, themes, wordpress, wordpress consultant san francisco, wordpress developers san francisco, wordpress theme |
By Ed Reckers on January 2, 2012
There is a wonderful presentation called, “What the Heck is Responsive Web Design” by John Polacek on his Github using scrolldeck.js:
Definitely check out
scrolldeck.js used to create the slide deck still presenation.
Posted in Blogging | Tagged html5, javascript, responsive, responsive design |
By Ed Reckers on October 10, 2011
If you need to list the number and names of sites hosted on a single shared host (by IP address) you can use the following two services:
Alternatively, you can follow these steps:
Alternatively, Bing can return a list of domains sitting on a single IP:
That’s it. There’s a couple methods you can try when looking for the domains sharing a single host and ip address on a shared server.
Posted in How To |
By Ed Reckers on September 3, 2011
Anyone looking for San Francisco WordPress Consultants will be well served by contacting us at Red Bridge Internet. We have been quite active lately as WordPress Consultants for businesses and other firms in San Francisco and the surrounding Bay Area. This most recent work consisted of quick turn around professionally developed WordPress websites and WordPress plugins. You can view our work on our Portfolio.
As San Francisco WordPress plugin developers we are available for projects big, small, and anywhere in between. Please don’t hesitate to contact us if you are looking to speak with someone regarding WordPress Consulting services and plugin development in and around the San Francisco Bay Area. We will be more then happy to speak with you about your project, budget, and timeline for any WordPress website or plugin projects you are looking to kick-off.
If you are looking for a San Francisco WordPress Consultant we look forward to hearing from you!
Posted in Business | Tagged bay area web site development, bay area wordpress consultant, bay area wordpress developer, bay area wordpress development, bay area wordpress expert, plugin development, plugins, resources, san francisco wordpress consultant, san francisco wordpress plugin developers, san francisco wordpress theme developer, wordpress expert, wordpress plugin development, wordpress plugins |
By Ed Reckers on August 18, 2011
If you are changing domains because of a re-brand or for some reason aggregating content, you’ll need to make sure that the change is done flawlessly. Since Google is basically the end all and be all of search, I’ve consulted their resources. There are two basic links to review:
The two links above are basically duplicate content (bad Google), but sometimes it helps to see things explained a couple different ways. The basic steps to take care of can be summed up as:
- Setup a Google Webmaster Tools Account and Add New Site
- Place .htaccess with 301 Permantent Redirects on old domain
- Check your database and files for old domain mentions
- Submit Sitemap and a Google Change of Address notification
- Let her rip and monitor logs
I’ve done this exercise twice now with (on the same domain no less) with no noticeable decline in search engine link positioning. I’m sure I’ll be doing this again sometime, so that’s the reason for the blog post. It’s basically for self reference for the next time I inevitably have to move a Web site to a new domain.
It took me about 3 days for Google to index a relatively new domain (21 days old).
Notes:
Then, on March 09 we became #1 on the result for Red Bridge Internet… Put in the request to move March 01
Posted in How To |
By Ed Reckers on August 16, 2011
I’ve found that one of the best ways to learn and improve upon writing plugins for WordPress is to review, learn from, and emulate the coding styles and best practices of really good WordPress Developers.
As a community post and a personal resource I’ll list here some WordPress Developers that produce popular, well written, and extremely useful plugins for the WordPress plugin community. Simply reviewing the plugins from this list of developers can go a long way in helping improve your own plugin writing.
Alex M. (Viper007Bond)
(You can find my personal blog at Viper007Bond.com) I work for Automattic (the company behind WordPress.com) doing VIP support and coding up random things. As you may notice below, I like writing WordPress plugins and can’t help writing more. I also contribute to the WordPress core from time to time. My most recent major contribution was the native embeds feature.
Brad Williams
Co-Founder of WebDevStudios.com and Co-Author of Professional WordPress and Professional WordPress Plugin Development.
Justin Tadlock
I like WordPress. A lot. My base of operations is my personal blog, which is where you’ll find a lot of neat stuff about WordPress. Oh, and I run this neat community called Theme Hybrid. That’s where you’ll find my WordPress-theme stuff.
Mark Jaquith
I’m a Lead Developer on the WordPress core software. I’m a freelance WordPress consultant. You can find out more about me at MarkJaquith.com, or follow @markjaquith on Twitter.
Ozh
I hack WordPress and do PHP stuff. Check http://ozh.org/
Joost de Valk (Yoast)
I’m a WordPress / web developer, SEO and online marketer. Throughout my career I’ve worked at several companies, ranging from enterprise hosting to online marketing agencies, allowing me to work with several large businesses around the world, ranging from Dutch leaders as KPN and KLM to world leaders as eBay, RTL and Salesforce. I now work as a freelance consultant and developer, mostly working on large scale sites. If you want to know more, visit my homepage, follow me on Twitter or check my Google+ Profile.
This is of course very small and incomplete list of professional WordPress plugin developers. They are the authors of plugins I’ve personally used and have looked at therefore they make the list. Please feel free to send through comments WordPress plugin authors that you would also like to see on this list.
There’s also a couple fun pages showing the top WordPress plugin authors:
Posted in WordPress | Tagged bay area wordpress developer, colusa county web development, plugin development, san francisco wordpress developer, wordpress developers, wordpress plugin development, wordpress plugins |
By mgirliq on August 13, 2011
Red Bridge Internet attends Word Camp San Francisco.

Line at Word Camp San Francisco, 2011
The overall consensus is that it’s better than last year! While it’s only day 2, our feedback is nothing short of positive.
Are you an attendee? Any feedback? Please share with a comment below!
Posted by mgirliq. Follow me on 
Posted in Uncategorized | Tagged word press event San Francisco |
By mgirliq on August 13, 2011
Red Bridge Internet
Servicing the better bay area for all aspects of your website development needs and SEO search engine optimization efforts.
We can service the following regions with top notch response and delivery time.
- San Francisco website development, SEO
- Marin website development, SEO
- San Mateo website development, SEO
- East Bay website development, SEO
- Santa Clara website development, SEO
- Bay Area website development, SEO
Please contact us today if you are in need of a website development or SEO services
Posted in Business, SEO | Tagged bay area web site development, bay area website development, San Francisco web site development, san francisco website development, san francisco website seo |
By Ed Reckers on August 2, 2011
I don’t provide this plugin for public download (it’s still too customized to be made publicly available). If you need access to the files or just have questions just contact me and I’ll try and help.
Posted in Plugins |