Function Parental_controls_loader->get_attribute
Definitions
sources/cns_parental_controls.php
- Get an attribute value on the main parental_controls tag.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $name | string | No | No | required parameter | N/A | N/A | The name of the option |
Returns
- The value of the option (null: option not found)
- Type: ?string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get an attribute value on the main parental_controls tag.
*
* @param string $name The name of the option
* @return ?string The value of the option (null: option not found)
*/
public function get_attribute(string $name) : ?string
* Get an attribute value on the main parental_controls tag.
*
* @param string $name The name of the option
* @return ?string The value of the option (null: option not found)
*/
public function get_attribute(string $name) : ?string

