How can i filter the link given in “link to existing content”.
As in the above image. I just want WSP BANNER TO BE SHOWN.
where WSP BANNER & CALENDAR are custom post_type
Any help will be appreciable.
How can i filter the link given in “link to existing content”.
As in the above image. I just want WSP BANNER TO BE SHOWN.
where WSP BANNER & CALENDAR are custom post_type
Any help will be appreciable.
You must be logged in to post a comment.
Currently there are no ready filters available for this purpose. A ticket has been posted for the request.Lets hope we get one soon.
Till then you can create your own filter.
Open includes/class-wp-editor.php and make folowing changes at line no 712
we just added a new filter instead of getting all the public post types
Then in your theme add following code to filter the internal link custom post type
}
add_filter(‘custom_insert_link_suggestion_filter’,’my_filter_function’,10,1);
There is a plugin that could be helpful for you: B09 Link to Existing Content
It has a filter called “link_to_existing_content_post_types”, that enables you to control which post types should be searched.
You can also use it together with this plugin, if you also want to have complete control over the search results: Search Everything.
Consider an example where my site is configured on wp.abc.com and I point my root domain http://www.abc.com to the new site. I need to update the URL’s in General Setting. So when I update the URL, it is reflected in menu items etc. Will it be reflected in the content area links aslo?