Internal link for a custom home URL
-
I have a multisite installation and one of the sites (e.g., mainsite.com) is responsible to manage all posts on the network. And the editor team send the posts to the network sites (e.g., siteA.com and siteB.com).
I want to start use the internal link tool. But as the home url on the editor is mainsite.com. All URLs defined as siteA.com and siteB.com are considered external. If I can set one with a hook, it will help me. Better both.
I would like to be able to set the URL considered to check whether the link is internal or external, but I haven’t found a hook that allows to do this.
The only way would change add a filter to
home_url
, but it would imply a change on all request once the hooks used to call theIndexable_Post_Watcher::build_indexable
uses as priorityPHP_INT_MAX
. I believe that it makes impossible any workaround to do some customization.Is my reasoning right? In the current version, is there any way to implement this URL change?
- The topic ‘Internal link for a custom home URL’ is closed to new replies.