When I click to insert/edit link in the tinyMCE rich editor for a post, then click "Or link to existing content", it shows only posts that are live and published. Is there a way to get the list that is searched to also include future and draft posts? I need to do this without modifying any core files, is there a hook I can tap into to modify the called query?
See if this doesn't do it:
First, the callback for that Ajax search (the
Now we can use the
You could add "drafts" to that last