Not an exact answer to your question (hooking into the insert/edit link functionality), but possibly an alternate method that can achieve the same goal (inputting a permalink, outputting a Post ID):
https://codex.wordpress.org/Function_Reference/url_to_postid
Related Posts:
- Custom wp_editor doesn’t update post_content
- Check for update vs new post on save_post action
- How to avoid infinite loop in save_post callback
- $update is always true in save_post
- Action hook ‘save_post’ triggered when deleting posts
- get post meta before it is updated (during SAVE_POST)
- save_post action firing before I publish / save the post
- save_post action only when creating a new post
- Check if value has changed on save_post
- Minimum Word Count Before A Post Can Be Made Pending Review
- update_post_meta() not working in save_post
- How do I save each option in a multiple select menu as it’s own meta_key + meta_value pair?
- Update post on save
- Post meta checkbox becomes unchecked occasionally
- Return code from save_post action?
- Get the post_id of a new post
- update_post_meta not working in save_post
- save_post only saves meta data on second save
- How to manage saving custom field from Quick edit and Post Save using save_post action hook without colliding each other?
- Why save_post_$(custom_post_type) is fired even if I am not already saving a post?
- Set the value of custom field when post is published or updated
- pass error to admin_notices on “quick edit”/save_post action
- save_post requiere at least one uploaded file to be published
- Get $_POST & $_REQUEST values before adding/updating post
- How can I create a new user account while creating a new post, and then set that new user as the author of that new post?
- Validate post checking if child term is assigned
- Clear cache on post of one type when something happens to post of other type
- Why not fire the save_post event?
- Compare custom taxonomies of updated post (or new post) [Updated with progress]
- WordPress 4.9.8 doesn’t save if content has style=”
- Reset all transients on post or page save
- Using PODS data with save_post
- Cant’t delete my custom posts
- where does this $post_id come from?
- Migrating from metaboxes to wp_editor()
- Update current WP post every 3 minutes [closed]
- Changing new post to “pending” on publish – but “Publish failed” – why?
- update_post_meta not working in foreach
- Save post in another table
- Strange bug on post/page save
- draft_to_pending action doesn’t seem to fire
- What action to use for when a post is saved / published, with a caveat
- Save custom value to main content of post
- Check for page template on save_post hook
- Access NEW/UPDATED post values in save_post() callback function
- Bookmarking custom template pages which all have the same page ID
- save button grayed out randomly
- Post editor doesn’t save embed media [closed]
- How to get a post meta value and pass that to update_option when a post is created or updated?
- WordPress save meta data : Displaying the word Array when selected
- Save current post using custom save button
- Get Post ID in Admin Edit screen otherwise generate it?
- Connection Reset on post/page save
- Meta data not saved on save_post
- Insert/Update DB table when making new post or update older one
- Prevent Page/Post From Being Created based on Pages/Posts per User per Time Unit
- How to debug | Some times the “Save Draft” button seems to spin but does not actually save
- My custom title gets duplicated at every save or post update
- Use save_post to generate file on wordpress
- Detect, if post is saved manually or programmatically in save_post-hook
- Show Font Awesome Icons In WP Post Editor
- Custom post type save_post action not firing
- save_post + insert_post = infinite loop
- Modifying the main editor priority
- Show only oldest post by author
- How can I pass $post object to ‘save_post’ add_action?
- Returning ACF custom field from publish_post
- How to edit 404 content via wp editor?
- How can I stop a function from encoding an entity?
- wpeditor issue – shows both mode and not able to focus/edit during visual mode
- add wp_editor to custom_meta_box
- save_post_{CPT} not updating the ‘sticky_posts’ option
- Post-ID in url differs from $post->ID
- `wp_editor()` CSS messing up the jQuery Dialog
- Set default value field meta_Value [closed]
- “send_to_editor” function returning pdf file name
- wp_editor in thickbox
- Is there a better way of retrieving the name of an acf pagelink type from current post?
- How to get a post’s content? [closed]
- Why I can not I use the variable outside my function?
- retrieve permalinks of posts inside custom post type by using post ID
- How to get page_id for url rewrite or how to use page slug for calling a page?
- How check if a post is saved from backend or frontend?
- Change post author without using wp_update_post()
- How to apply a custom skin to WP_Editor / TinyMCE?
- custom wp_editor does not save the content in plugin settings
- Wp_editor doesn’t send the required data
- Compare “Main” post ID to ID inside wp_query loop
- Append USER ID to an outbound link?
- Custom post type meta fields missing on save_post_type
- How to load WP_Editor JS files manually (with AJAX)?
- Is there a function to search for a wildcard value when calling a shortcode?
- Function that get ACF fields value before saving
- wp-editor-area textarea disapear on cancel-comment-reply-link click
- Syling Custom Fields echo’s from from functions.php
- save post running twice and creating two database entries – how do I disable this?
- wp_editor() in content that was loaded with ajax [duplicate]
- Can I get custom post items in select box (dropdown)
- Filter page ID outside the loop and order
- Can I provide a user’s user_ID to them and can it also be searchable in a member’s directory