LLMS_Blocks_Visibility::get_attributes()
Retrieve visibility attributes.
Description Description
Used when registering dynamic blocks via PHP.
Return Return
(array)
Source Source
File: libraries/lifterlms-blocks/includes/class-llms-blocks-visibility.php
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', ), ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |