# profile-builder/3.9.9/admin/advanced-settings/includes/functions.php

User Profile Builder – Beautiful User Registration Forms, User Profiles &amp; User Role Editor, version 3.9.9. 21 lines.

- Page: https://pluginprobe.com/plugins/profile-builder/3.9.9/code/admin/advanced-settings/includes/functions.php
- Raw: https://pluginprobe.com/plugins/profile-builder/3.9.9/raw/admin/advanced-settings/includes/functions.php
- Modified: 2021-01-06T14:15:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/profile-builder/3.9.9/code/admin/advanced-settings/includes/functions.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) exit;

/**
 * @param  string        $context   Name of the folder where the code file is placed (tab slug).
 * @param  string        $setting   Name of the file where the code is placed.
 * @return string|false             Returns false if settings are empty (shouldn't reach this point in that case anyway), else returns the setting.
 */
function wppb_toolbox_get_settings( $context, $setting ) {
    $option = 'wppb_toolbox_' . $context . '_settings';

    $settings = get_option( $option );

    if ( $settings == false ) return false;

    if ( isset( $settings[ $setting ] ) )
        return $settings[ $setting ];

    return false;
}

```
