Add checkbox options for widgets with sort

It’s easy to add the options to the widget but the problem that how can make this options sort like this:

https://i.imgur.com/gewZiVq.png

this is the data that saved into the database:

Array
(
[2] => Array
(
[title] => Stay With Us
[style] => modern
[colored] => 1
[columns] => 4
[order] => Array
(
[facebook] => 1
[twitter] => 1
[google] => 1
[youtube] => 1
[dribbble] => 1
[vimeo] => 1
[vk] => 1
[pinterest] => 1
[steam] => 1
[instagram] => 1
[envato] => 1
[posts] => 1
[comments] => 1
[members] => 1
[rss] => 1
[github] => 1
)

[show_title] => 1
[bs-show-desktop] => 1
[bs-show-tablet] => 1
[bs-show-phone] => 1
[shortcode-id] => better-social-counter
)

[_multiwidget] => 1
)

Read more here:: Add checkbox options for widgets with sort

Leave a Reply

Your email address will not be published. Required fields are marked *