LLMS_Blocks_Visibility::get_attributes()

Retrieve visibility attributes.


Description Description

Used when registering dynamic blocks via PHP.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: libraries/lifterlms-blocks/includes/class-llms-blocks-visibility.php

43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
public static function get_attributes() {
    return array(
        'llms_visibility'       => array(
            'default' => 'all',
            'type'    => 'string',
        ),
        'llms_visibility_in'    => array(
            'default' => '',
            'type'    => 'string',
        ),
        'llms_visibility_posts' => array(
            'default' => '[]',
            'type'    => 'string',
        ),
    );
}


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.