Plugin Directory

Changeset 1194254


Ignore:
Timestamp:
07/07/2015 04:46:41 PM (11 years ago)
Author:
scriptrunner
Message:

Use admin_init hook for function wp_admin_no_show_admin_redirect(). Tested with WordPress 4.2.2

Location:
wp-admin-no-show/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-admin-no-show/trunk/readme.txt

    r1034018 r1194254  
    44Tags: admin bar, admin menu, dashboard, disable, remove, hide
    55Requires at least: 3.1
    6 Tested up to: 4.0.1
    7 Stable tag: 1.4.5
     6Tested up to: 4.2.2
     7Stable tag: 1.5.0
    88License: MIT License
    99License URI: http://www.opensource.org/licenses/mit-license.php
     
    3939
    4040== Changelog ==
     41
     42= 1.5.0 =
     43* Use admin_init hook for function wp_admin_no_show_admin_redirect()
     44* Tested with WordPress 4.2.2.
     45* Updated copyright year.
    4146
    4247= 1.4.5 =
  • wp-admin-no-show/trunk/wp-admin-no-show.php

    r1034018 r1194254  
    44Plugin URI: http://www.dougsparling.org
    55Description: Efectively blocks admin portion of site for selected user roles. Any attempt to manually navigate to wp-admin section of site and user will be redirected to selected site page. Hides admin bar.
    6 Version: 1.4.5
     6Version: 1.5.0
    77Author: Doug Sparling
    88Author URI: http://www.dougsparling.org
    99License: MIT License - http://www.opensource.org/licenses/mit-license.php
    1010
    11 Copyright (c) 2012-2014 Doug Sparling
     11Copyright (c) 2012-2015 Doug Sparling
    1212Based on WP Hide Dashboard plugin by Kim Parsell and Admin Bar Disabler plugin by Scott Kingsley Clark
    1313
     
    9494    }
    9595}
    96 add_action( 'admin_head', 'wp_admin_no_show_admin_redirect', 0 );
     96add_action( 'admin_init', 'wp_admin_no_show_admin_redirect', 0 );
    9797
    9898/**
Note: See TracChangeset for help on using the changeset viewer.