WF_ADMIN_ACCESS

Description

Controls visibility and access of the entire Wonderflux menu system, including sub-pages.

Parameters

Various – please see examples below.

Example

<?php
//In your child theme functions.php file:

//Example 1
// For multiple user ID's (1 and 4)
define('WF_ADMIN_ACCESS', serialize(array('1','4')));

//Example 2
// For single user ID (1)
define('WF_ADMIN_ACCESS', serialize(array('1')));

//Example 3
// For a single WordPress role (can use custom defined roles too)
define('WF_ADMIN_ACCESS', 'administrator');

//Example 4
// To remove the menus for all users
define('WF_ADMIN_ACCESS', 'none');
?>

Notes

The specified user will require the WordPress capability manage_options to access the Wonderflux options pages.

This constant documentation was last modified on: August 7, 2011 by Jonny