Пример #1
0
function hippo_register_shortcode_init()
{
    do_action('hippo_register_shortcode', em_Shortcodes_Engine::getInstance());
}
Пример #2
0
_e('Select Shortcode:', EM_SHORTCODES_TEXTDOMAIN);
?>
                        </div>

                        <div class="input-field">
                            <select name="shortcode" id="shortcode-list">
                                <option
                                    value="0"
                                    data-description="<?php 
_e('Select a shortcode from list', 'hippo-plugin');
?>
">
                                    -- Select --
                                </option>
                                <?php 
$shortcode = em_Shortcodes_Engine::getInstance();
$get_shortcode = $shortcode->get_shortcodes();
foreach ($get_shortcode as $name => $codes) {
    ?>
                                        <option data-parent=""
                                                value="<?php 
    echo $name;
    ?>
"
                                                data-description="<?php 
    echo isset($codes['description']) ? $codes['description'] : '';
    ?>
"><?php 
    echo $codes['title'];
    ?>
</option>