Skip to content

How to get default values? #1487

@paulthecoder

Description

@paulthecoder

Hi this is not really an issue, I was just wondering if you can access the default values of lets say the typography field from the global variable $global_redux, or any other way.

array(
    'id'             => 'main_font',
    'type'           => 'typography',
    'color'          => false,
    'font-size'      => false,
    'font-style'     => false,
    'font-weight'    => false,
    'letter-spacing' => true,
    'line-height'    => false,
    'text-align'     => false,
    'subsets'        => false,
    'default'        => array(
        'font-family'    => 'Roboto Condensed',
        'google'         => true,
        'letter-spacing' => '0.5px',
        'font-size'      => '18px',
    ),
),

Something like this:

Redux->get_default('main_font','font-size');

or

$global_redux['main_font']['default']['font-size'];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions