Plugin Directory

Changeset 1379379


Ignore:
Timestamp:
03/26/2016 11:45:46 AM (10 years ago)
Author:
omnileads
Message:

Bug fix attempt 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tawkto-manager/trunk/tawktomanager.php

    r1379002 r1379379  
    1111/** load.php loads plugin config and sets constants */
    1212require_once 'includes/load.php';
     13
     14function is_admin_logged_in(){
     15    $userInfo = wp_get_current_user();
     16    if (in_array( 'administrator', (array) $userInfo->roles)){
     17        return true;
     18    }
     19    return false;
     20}
    1321
    1422/*
Note: See TracChangeset for help on using the changeset viewer.