Tagged Questions
2
votes
1answer
55 views
How to store widget fields data as an array?
I am creating a widget, it needs to store about 10 IDs. Right now I'm using following field method to store each of the ID in a separate field. It stores data of each field in a separately in the ...
0
votes
1answer
55 views
Ways of dealing with nested arrays within option
I stumbled upon one problem regarding too complicated(at least in my point of view) data structures stored in option field.
Right now I have an array of collections and within each other there is ...
3
votes
1answer
358 views
Settings API - save an array of options as one setting (array_push?)
1. Basic settings API callback.
Using Settings API my $sanitize_callback validating function looks like:
(...)
if($type == "foo") {
$valid_input[$id] = $option[$id];
}
else ...
0
votes
1answer
391 views
How to save Wordpress Options as an array?
How do I save options as an array using forms? I don't want to use Settings API.
Here's working form that saves 3 options separately:
<form method="post" enctype="multipart/form-data" ...
1
vote
1answer
939 views
Working with an Array inside Your Theme Options Array - Multiple Values
I apologize if this is covered extensively elsewhere, I'm not sure how to phrase my searches on the topic.
Basically, instead of the following standard code to store data in WP-options...
$options = ...