in Tips and Tricks, WordPress

Embed in WordPress Outside of Editor or Content

Embed anything in wordpress is so easy, just paste the url in the editor and check the preview. WordPress automatically parse url in the content of the editor and embed almost near 20+ urls from social media audio, video, links etc. Here is a list of available auto embed links or services. But how about if we need to embed or parse any url outside of wordpress editor or inside theme or plugin custom code ? It’s just easy. Just check the following code snippet

https://gist.github.com/manchumahara/224cc85a1c8df6d6128b6901ba0298b9