{eac}Doojigger Reference

advanced_mode

advanced mode trait - advanced mode settings & features

Tags
category

WordPress Plugin

author

Kevin Burkholder KBurkholder@EarthAsylum.com

copyright

Copyright (c) 2024 EarthAsylum Consulting <www.EarthAsylum.com>

version
24.1030.1

Table of Contents

$advanced_mode  : array<string|int, mixed>
$advanced_mode_allowed  : bool
allowAdvancedMode()  : bool
allow advanced mode - aids in complexity and/or licensing limits.
config_advanced_mode()  : void
config advanced mode - aids in complexity and/or licensing limits.
is_advanced_mode()  : bool
is advanced mode filter - aids in complexity and/or licensing limits.
isAdvancedMode()  : bool
is advanced mode - aids in complexity and/or licensing limits.
setAdvancedMode()  : void
set advanced mode - aids in complexity and/or licensing limits.

Properties

$advanced_mode

public array<string|int, mixed> $advanced_mode = array('global' => array('default' => false), 'settings' => array('default' => false))

Advanced Mode. use setAdvancedMode(bool, what, level) to set, use isAdvancedMode(what, level) to check

$advanced_mode_allowed

public bool $advanced_mode_allowed = false

Advanced Mode allowed.

Methods

allowAdvancedMode()

allow advanced mode - aids in complexity and/or licensing limits.

public allowAdvancedMode([bool $allow = null ]) : bool
Parameters
$allow : bool = null
  • allow or not
Tags
example

$this->allowAdvancedMode(false);

Return values
bool
  • allowed or not

config_advanced_mode()

config advanced mode - aids in complexity and/or licensing limits.

public config_advanced_mode() : void

set 'advanced mode' based on defined constant or user meta

Return values
void

is_advanced_mode()

is advanced mode filter - aids in complexity and/or licensing limits.

public is_advanced_mode([bool $bool = false ][, string $what = null ][, string $level = null ]) : bool
Parameters
$bool : bool = false
  • ignored
$what : string = null
  • what is in advanced mode
$level : string = null
  • what level is in advanced mode (default, basic, standard, pro)
Tags
example

$this->apply_filters('is_advanced_mode',false,'settings');

Return values
bool
  • is or is not

isAdvancedMode()

is advanced mode - aids in complexity and/or licensing limits.

public isAdvancedMode([string $what = null ][, string|array<string|int, mixed> $level = null ]) : bool
Parameters
$what : string = null
  • what is in advanced mode
$level : string|array<string|int, mixed> = null
  • what level(s) is in advanced mode (default, basic, standard, pro)
Tags
example

$this->isAdvancedMode('settings');

example

$this->isAdvancedMode('settings',['administrator','editor']);

Return values
bool
  • is or is not

setAdvancedMode()

set advanced mode - aids in complexity and/or licensing limits.

public setAdvancedMode([bool $is = true ][, string $what = null ][, string $level = null ]) : void
Parameters
$is : bool = true
  • is or is not
$what : string = null
  • what is in advanced mode (global, settings, ...)
$level : string = null
  • what level is in advanced mode (default, basic, standard, pro)
Tags
example:

$this->setAdvancedMode(true,'settings');

Return values
void

Search results