• Resolved matlibu

    (@matlibu)


    I have created several custom post type and I show it into a unique page

    I want to test the access by custom post type in my lopp and I use global $userAccessManager to use the checkObjectAccess function

    But in my page, global $userAccessManager is not set ! (null)

    Why ?

    can you help me

    thanks

    http://wordpress.org/plugins/user-access-manager/

Viewing 1 replies (of 1 total)
  • Thread Starter matlibu

    (@matlibu)

    ok, I’ve founded a solution : I need to include the class and instanciate the object myself

    //Classes
    require_once ‘wp-content/plugins/user-access-manager/class/UserAccessManager.class.php’;
    require_once ‘wp-content/plugins/user-access-manager/class/UamUserGroup.class.php’;
    require_once ‘wp-content/plugins/user-access-manager/class/UamAccessHandler.class.php’;

    if (class_exists(“UserAccessManager”)) {
    $oUserAccessManager = new UserAccessManager();
    }

    et zou

Viewing 1 replies (of 1 total)

The topic ‘global $userAccessManager is not set ?’ is closed to new replies.