I want to create a popup shortcode in admin panel. I already create the shortcode button and a popup on button click.
I want to display in the popup (not in the shortcode button), all my custom shortcodes that I have created in a dropdown list.
I really don't know how to get my shortcodes name with a loop like this for example:
<tbody>
<select id="shortcode-generator-select">
<option value="raw"></option>
<?php foreach( $shortcode as $shortcode ) : ?>
<option value="<?php echo $shortcode['name']; ?>"><?php echo $shortcode['title']; ?> </option>
<?php endforeach; ?>
</select>
</tbody>
I just want to understand what is the way to create a popup shortcode generator.