Whats your opinion about Gutenberg ?

WordPress Core Team is getting ready for inclusion of Gutenberg, As WP developer I am getting familiar with it and for starters I installed Gutenberg plugin on local environment to play with it, while installing I noticed it has 2.7 stars which very low for the plugin which going to be part of “Core”.

There are so many negative reviews about it, most of them are added recently look like people are really mad about it.

I am not totally familiar with Gutenberg to judge it but want to know why people hate it so much.

please let me know whats your view about Gutenberg

Advertisements

Setting up WordPress.com VIP Development Environment with EasyEngine (Nginx)

Hey there, As you know VIP Quickstart has been deprecated recently. Here is some easy way to get started with VIP development, We hope soon EasyEngine will V4 launch with VIP support but for now, lets do all thing manually.
You need Ubuntu 14 / 16 LTS with sudo access also we need svn and git installed.
Continue reading Setting up WordPress.com VIP Development Environment with EasyEngine (Nginx)

WordPress redirect user with role

WordPress has many users roles, you can redirect particular users by role with following function

<?php

function redirect_user_on_role()
 {

 // retrieve current user info

 global $current_user;
 get_currentuserinfo();

 // If login user role is Subscriber

 if ($current_user->user_level == 0)
 {
 wp_redirect(esc_url(get_permalink(get_page_by_title('Perticluar Page By Name'))));
 exit;
 }

 // If login user role is Contributor

   else
 if ($current_user ->user_level > 1)
 {
 wp_redirect(home_url());
 exit;
 }

 // If login user role is Editor

   else
 if ($current_user ->user_level > 8)
 {
 wp_redirect(home_url());
 exit;
 }

 //For other roles
  else
 {
   $redirect_to = 'http://google.com/';
   return $redirect_to;
 }
 }

add_action('admin_init', 'redirect_user_on_role');

Continue reading WordPress redirect user with role