WordPress.org

Support

Support » Plugins and Hacks » Insert into post – Custom Button

Insert into post – Custom Button

  • Damjan
    Member

    @skydriver

    Hello friends,

    I have created a plugin and works great but because the plugin uses shortcode I have created and custom button and form in the visual editor…

    // the button…
    add_action(‘media_buttons_context’, ‘add_my_custom_button’);
    // the form, will be displayed when the user will click the custom button
    add_action(‘admin_footer’, ‘add_inline_popup_content’);

    So, my question is, how to get the entered values from the form and how to put in the visual editor ?

    In the form I have
    <input name=”url” … />
    <input name=”width” … />
    <input name=”height” … />

    and I want to put in the editor in this format:
    [my_shortcode url=”…” width=”…” height=”…”]

    I need some like ‘Insert into post’ custom button…

    Thanks!

  • The topic ‘Insert into post – Custom Button’ is closed to new replies.