I used the send_to_editor
method in JavaScript. The end result ended up looking like this:
window.send_to_editor = function(html) {
// logic to save via AJAX goes here.
}
Related Posts:
- How to get custom field image url of specific size
- add_meta_box Callback not being called
- Plugin allowing for artists, events and venues
- How to get images from EDD post?
- how do i remove posts from a WP_Query so the pagination is right?
- Saving Custom Post types and fields to a custom table
- Creating a custom post type, adding custom meta fields, preventing all future editability of posts of this type
- auto populate list of questions if user select a category xyz
- Redirect to another page using contact form 7? [closed]
- Custom Post Type Fields
- How to Resize the Custom Post Images?
- Amazon.com intergration with WordPress?
- Sticky option for custom post types without using custom fields or plugins
- How do we update a custom file upload field with the Advanced Custom Field plugin?
- Price comparison table based on Custom Post Type?
- Show related posts based of current ACF field name in a single page post (a loop within loop)
- How can I store data from custom fields to custom tables?
- Dictionary-style definition list plugin
- How to create repeater field manually, without plugin (ACF Pro)?
- Register PODS Custom Field with WPGraphQL [closed]
- WordPress hide post from custom post-type on a single page
- Create multiple posts when a custom post is created
- What method should I use for a sidebar widget that reads latest posts?
- Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites
- How can i do custom author list?
- A plugin for software reviews site like this one?
- Links not opening as they should. Custom WP plugin
- Creating a default Custom Post Template that a Theme can override
- Jetpack plugin (ShareDaddy): Prevent share buttons showing on custom post types?
- Add custom field to media attachment image attribute in post editor
- How to make a list of companies’ information and display them to user, using custom post types and a custom taxonomy?
- How can I get an image from the uploads dir and enter it in the media library? [closed]
- Add custom meta box on Post page
- how to display all posts Custom fields dynamically?
- Seriously stuck with some custom meta box/plugin stuff
- How to Build a Movie Library in WordPress 3.x
- How do I get multiple pages by title?
- I need to add a custom “cover” to every new post — plugin or custom setup?
- Custom options page checkbox will not save, despite working with text
- Upload files programmatically to users
- How to create Repeater fields using Advanced Custom Fields?
- Set attached to state
- How can I get full attachment url from wp_get_attachment_metadata?
- Converting Attachment to Images?
- wordpress reusable content blocks
- Allow users mark posts as “complete”?
- WordPress CMB2 – Run function on save
- Is there a way to order posts and custom post types as one group?
- dynamically generating plugin syntax
- Duplicate posts when posting nulls in records in phpMyAdmin [closed]
- Loco Translate: Custom Post and Custom Taxonomy Labels not translated in wp-admin menu
- Accessing post’s meta data based on user’s click of a post
- Carbon Fields use in custom plugin class
- Exclude post by custom meta with pre_get_posts
- get_post_type() and WP_QUERY issue
- Custom post type – no layout section of Document tab, and no author choice
- TinyMCE Styles Dropdown not adding html tags other than span
- Unable to select image using custom image field type
- Custom fields for custom post type
- WordPress custom taxonomy not showing
- Using ACF default value to autoincrement a number field
- posts from multiple post types in one slider
- How to add table class for tables of TinyMCE advanced wordpress plugin? [closed]
- Generate Own Custom CSS Button with icon
- How do I add multiple buttons to Tiny MCE in a single plugin?
- Plugin generated unexpected output – No PHP errors
- Use jQuery Datepicker code from plugin
- “switchEditors is not defined” with wp_editor() in jQuery UI tabs
- Attachments broken after giving WordPress its own directory
- Posts 2 Posts: Display custom types connected to the same other custom type but with another connection
- Including content from legacy app: via plugin or custom content?
- Adding custom Field To The Posts Listing
- Error Metabox Warning: call_user_func() expects parameter 1 to be a valid callback
- Table of contents (TOC) plugin is not showing header tag
- Create category for each user
- Preset custom fields
- Adding category base to url in custom post giving 404?
- custom post type plugin error [closed]
- get_post_meta shortcode returns empty field
- Problem with checked box on wp car manager plugin
- Merging new theme and plugins from development site to production
- Is it possible to customize a wordpress post from outside dashboard(Something like site.com/post-type/post/?e=post_id)?
- How to disable/enable PHP plugin functionality based on a TinyMCE toggle-button
- Custom product page’s style for printing
- Changing the body of mail sent to new user registration
- Custom Fields as Post Type Options
- Better code/text editing for posts and pages?
- Calling an custom field from theme option at the frontend
- Differentiate attachment pages in search results
- How to add jquery to my custom post type wp plugin
- WordPress list child pages of custom post type
- WordPress Custom post type won’t save properly
- force category table refresh when adding new category
- Extending a CPT by Created by another plugin
- get_post_meta does not work
- Remove base from the custom post type URL [duplicate]
- WordPress show different custom post type
- ACF: Not displaying ACF data from another post
- Order shipped by which driver[hook for woocoomerce order staus changed and popup in admin panel ] [closed]
- How to make content as required in custom post type?