WordPress.org

Ready to get started?Download WordPress

Forums

Insert into post - Custom Button (1 post)

  1. Damjan
    Member
    Posted 2 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic