How to hide WordPress admin for your subscribers?

CMS, Web Design & Programming, Web Development Services, WordPress
These functions will help you for hiding  WordPress admin for your subscribers. We’ve used a capability of “edit_posts” which is just outside of the roles of a Subscriber user. If the user is logged in, but can’t edit posts, then hide the admin bar on the frontend of the website. If the user is logged in, but can’t edit posts, do not allow them to access the WordPress admin panel. This code could go in functions.php of your theme or in a plugin you create. /** * Disable admin bar in frontend for subscribers. */ function themeblvd_disable_admin_bar() { if( ! current_user_can('edit_posts') ) add_filter('show_admin_bar', '__return_false'); } add_action( 'after_setup_theme', 'themeblvd_disable_admin_bar' ); /** * Redirect to homepage and not allow access to * WP admin for Subscribers. */ function themeblvd_redirect_admin(){ if ( !…
Read More

Web Design Basics

Blog
In the last 25 years the internet has changed substantially, and consumer behavior has changed even more. Websites now dominates the way we communicate, the way we shop, and the way we make decisions both online and also in the face-to-face world. Every web designer has a secret or two. Hard-won workflows, hidden hacks, and insider knowledge that are the mark of true experience and the stuff that separates great web design training from good. You have to remember that the choices are all yours, because it's your site, and you have to decide what you like. Choices like which colors, styles, fonts, graphics and writing styles to use are all very personal choices and not to be made lightly. Here, we've managed to persuade some of the web's busiest…
Read More

How to Create a MySQL Database in Azure?

Blog
This guide will show you how to use ClearDB to create a MySQL database from the Azure Store and how to create a MySQL database as a linked resource when you create a Azure Web Site . ClearDB is a fault-tolerant database-as-a-service provider that allows you to run and manage MySQL databases in Azure datacenters and connect to them from any application. Table of Contents How to: Create a MySQL database from the Azure Store How to: Create a MySQL database as a linked resource for Azure Web Site Read More
Read More