I am new in WordPress and I want to add the media frame in front end which opens in back-end of WordPress to my WordPress application.
To open it in backend I am using wp.media()
function; but it is not working in Front end.
I am new in WordPress and I want to add the media frame in front end which opens in back-end of WordPress to my WordPress application.
To open it in backend I am using wp.media()
function; but it is not working in Front end.
Comments are closed.
I have got my answer and I am posting the solution so that if someone else need to use it he/she can use it.
Place this code in your Functions.php file.