How to use wpLink without editor?

Posted by Prem Tiwari | Updated on

There is not ethical way of doing this. But still there is a way to do this. WordPress wrote wpLink script keeping in mind that editor is there but still WordPress handle when editor is not there.

Consider this example and assume that we are using it on front-end in footer.

First enqueue the essential style and scripts.

Now hook this function in footer Read the inline comments.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers