Site icon Hip-Hop Website Design and Development

Customized Fields – Find out how to get the listing of a particular energetic widget every time it rendered

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/>";
}

https://prnt.sc/1uhnysm

How can I obtain this?