I’m attempting to get a particular widget as an inventory in choose enter inside a meta field/customized fields.
Clarification:
I’ve created a meta field/customized fields in posts and pages. Through which I’ve some enter fields and one in every of them is choose enter. I wish to get the title id of that particular widget every time it’s activated.
For instance:
Let’s take the most recent publish widget.
What I wish to obtain is when each I activate the widget ( irrespective of what number of instances ) whether or not 1 time, 2 instances, or 10 instances
I wish to get that widget distinctive ID title/customized title and every info inside that choose possibility
Additionally,
At present, I’ve code that provides all of the widget names and ids
foreach ( $GLOBALS['wp_widget_factory']->widgets as $widget ) {
echo '<possibility worth="' . $widget->id_base .'" >' . $widget->title. '</possibility>' . "<br/>";
}
How can I obtain this?