WordPress.org

Ready to get started?Download WordPress

Plugin Reviews

Demo Lock

Demo Lock is a fully configurable plugin for the wp-admin interface enabling plugin developers to easily setup a secure live demo environment.

Average Rating
2 stars
2 out of 5 stars
3 stars
It works but need some fixes
By , for WP 3.7.1

First this is something great and I might have done it if it were not you. I appreciate your hard work.

The problem occurs as soon as the demo user gets the 'manage_options' capability. This is because the is_demo_user() assumes that demo user cannot have manage_options capability. I used the following code to fix it:

private function is_demo_user() {

  $current_user = wp_get_current_user();

  if ( empty( $current_user ) )
    return false;

  global $demovars;

  return ($current_user->data->user_login == $demovars['username']);

}

With these I got the Settings menu on dashboard. However it had all the sub-menu items so I had to remove all except one of my plugin.

1 star
No config reference
By , for WP 3.6.1

There is no config reference, then it is not working.

You must log in to submit a review. You can also log in or register using the form near the top of this page.