Assigning multiple or additional capabilities to specific users or how to create additional roles like bbpress roles?

In WordPress is pretty simple create custom roles and also assign specific capabilities to specific user roles (no matter if from core or custom). In my plugins I often create an user role that has all the capabilities required by my plugin, and then I attach some of thos capabilities to existing roles. I’ll give … Read more

Let user select their own category

User taxonomies can help you achieve this, I’m working on something similar. You can install the plugin http://wordpress.org/plugins/user-taxonomies/, and register a custom taxonomy , although in my case the plugin has some limitations, may be it helps you. register_taxonomy(‘profession’, ‘user’, array( ‘public’ =>true, ‘labels’ =>array( ‘name’ =>’Professions’, ‘singular_name’ =>’Profession’, ‘menu_name’ =>’Professions’, ‘search_items’ =>’Search Professions’, ‘popular_items’ … Read more

User meta and public function security

functions.php is not more nor less secure than any other file in your WordPress installation, just like post meta is not more nor less secure than any other table in your WordPress database. That means that they are secure until your site is hacked. So question become “is WordPress secure?” and I think that: that … Read more

SELECT from wp_users, get Displayname too

You will need to do a JOIN on the users table in your old database, and also select the display name. One key thing to note here, is that I aliased dbold_posts as P, and dbold_users as U – when dealing with multiple table, it’s always best practice to specify which table you are referring … Read more