reduxframework / redux-framework

Redux is a simple, truly extensible options framework for WordPress themes and plugins!

Home Page:http://redux.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Repeater return array

MorenoDD opened this issue · comments

Site Health Report

WordPress Version: 6.3.1
Server: nginx/1.16.0
PHP Version: 7.4.1
ReduxFramework Installed as Plugin

Steps to reproduce

Initialize a field like this:
Screenshot 2023-09-13 alle 12 58 08

and try to print the value with:

print_r($opt_name['color_palette']);

Expected Behavior

Return an array well formatted like this:
Array ( Array( name => 'blue', color => '#1e73be' ), Array( name => 'red', color => '#dd3333' ) )

Actual Behavior

Return a non-well formatted array
Screenshot 2023-09-13 alle 12 57 25

That's expected behavior when grouped_values is set to true.