PluginProbe
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor / 3.7.0
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor v3.7.0
4.0.2 4.0.1 4.0.0 3.16.6 3.16.5 3.16.4 3.16.3 3.16.2 3.16.1 3.16.0 3.15.9 3.9.9 3.9.5 3.9.6 3.9.7 3.9.8 1.1.7 1.1.8 1.1.9 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 All 340 releases
profile-builder / admin / advanced-settings / includes / functions.php

functions.php in User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor 3.7.0, at admin/advanced-settings/includes/functions.php

21 lines 677 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) exit;
3
4 /**
5 * @param string $context Name of the folder where the code file is placed (tab slug).
6 * @param string $setting Name of the file where the code is placed.
7 * @return string|false Returns false if settings are empty (shouldn't reach this point in that case anyway), else returns the setting.
8 */
9 function wppb_toolbox_get_settings( $context, $setting ) {
10 $option = 'wppb_toolbox_' . $context . '_settings';
11
12 $settings = get_option( $option );
13
14 if ( $settings == false ) return false;
15
16 if ( isset( $settings[ $setting ] ) )
17 return $settings[ $setting ];
18
19 return false;
20 }
21