: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Redux User Meta config.
* For full documentation, please visit: http:https://devs.redux.io/
defined( 'ABSPATH' ) || exit;
if ( ! class_exists( 'Redux_Users' ) ) {
// Change the priority the Redux_Users boxes appear.
Redux_Users::set_profile(
'title' => esc_html__( 'Cool Options', 'your-textdomain-here' ),
'title' => esc_html__( 'User Settings', 'your-textdomain-here' ),
'icon' => 'el-icon-home',
'title' => esc_html__( 'Input 1', 'your-textdomain-here' ),
'required' => array( 'user-text', '=', 'two' ),
'title' => esc_html__( 'Input 2', 'your-textdomain-here' ),
'title' => esc_html__( 'Input 3', 'your-textdomain-here' ),
'id' => 'user-web-fonts',
'title' => esc_html__( 'Web Fonts', 'your-textdomain-here' ),
// Can be set to false allowing for any media type, or can also be set to any mime type.
'desc' => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
'id' => 'user-section-media-start',
'title' => esc_html__( 'Media Options', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'With the "section" field you can create indent option sections.', 'your-textdomain-here' ),
'title' => esc_html__( 'Media w/ URL', 'your-textdomain-here' ),
'desc' => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
'default' => array( 'url' => 'https://s.wordpress.org/style/images/codeispoetry.png' ),
'id' => 'user-section-media-end',
'id' => 'user-media-nourl',
'title' => esc_html__( 'Media w/o URL', 'your-textdomain-here' ),
'desc' => esc_html__( 'This represents the minimalistic view. It does not have the preview box or the display URL in an input box. ', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
'id' => 'user-media-nopreview',
'title' => esc_html__( 'Media No Preview', 'your-textdomain-here' ),
'desc' => esc_html__( 'This represents the minimalistic view. It does not have the preview box or the display URL in an input box. ', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
'title' => esc_html__( 'Add/Edit Gallery', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Create a new Gallery by selecting existing or uploading new images using the WordPress native uploader', 'your-textdomain-here' ),
'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
'id' => 'user-slider-one',
'title' => esc_html__( 'JQuery UI Slider Example 1', 'your-textdomain-here' ),
'desc' => esc_html__( 'JQuery UI slider description. Min: 1, max: 500, step: 3, default value: 45', 'your-textdomain-here' ),
'id' => 'user-slider-two',
'title' => esc_html__( 'JQuery UI Slider Example 2 w/ Steps (5)', 'your-textdomain-here' ),
'desc' => esc_html__( 'JQuery UI slider description. Min: 0, max: 300, step: 5, default value: 75', 'your-textdomain-here' ),
'title' => esc_html__( 'JQuery UI Spinner Example 1', 'your-textdomain-here' ),
'desc' => esc_html__( 'JQuery UI spinner description. Min:20, max: 100, step:20, default value: 40', 'your-textdomain-here' ),
'id' => 'user-switch-parent',
'title' => esc_html__( 'Switch - Nested Children, Enable to show', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Look, it\'s on! Also hidden child elements!', 'your-textdomain-here' ),
'id' => 'user-switch-child',
'required' => array( 'switch-parent', '=', '1' ),
'title' => esc_html__( 'Switch - This and the next switch required for patterns to show', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Also called a "fold" parent.', 'your-textdomain-here' ),
'desc' => esc_html__( 'Items set with a fold to this ID will hide unless this is set to the appropriate value.', 'your-textdomain-here' ),
'title' => esc_html__( 'Home Layout', 'your-textdomain-here' ),
'icon' => 'el-icon-home',
'id' => 'user-homepage_blocks',
'title' => 'Homepage Layout Manager',
'desc' => 'Organize how you want the layout to appear on the homepage',
'required' => array( 'layout', '=', '1' ),
'highlights' => 'Highlights',
'staticpage' => 'Static Page',
'services' => 'Services',
'type' => 'image_select',
'title' => esc_html__( 'Preset', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'This allows you to set a json string or array to override multiple preferences in your theme.', 'your-textdomain-here' ),
'desc' => esc_html__( 'This allows you to set a json string or array to override multiple preferences in your theme.', 'your-textdomain-here' ),
'img' => Redux_Core::$url . '../sample/presets/preset1.png',
'img' => Redux_Core::$url . '../sample/presets/preset2.png',
'presets' => "{'slider1':'1', 'slider2':'0', 'switch-on':'0'}",
$data = Redux_Users::get_user_meta(
'key' => 'user-text', /* If you're only looking for a key within the meta, otherwise all values will be returned. */
'opt_name' => $opt_name, // Optional, but needed to recover default values for unset values.
'user' => '', // User id, else current user ID is returned.