Uploading video to google drive via frontend [closed]

Closed. This question is off-topic. It is not currently accepting answers. Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third party plugins and themes are off topic, they are better asked about at their developers’ support routes. Closed 2 … Read more

How could I execute my plugin just in frontend (not in backend)

I don’t need my plugin running through wp-admin, including wp-login. How could I prevent it? is_admin works fine but i don’t know how to ignore everything related to wp-admin (like wp-login.php). Thanks. 1 Answer 1 Check the requested URI: if(!is_admin() && strpos($_SERVER[‘REQUEST_URI’], ‘wp-login.php’) === false && strpos($_SERVER[‘REQUEST_URI’], ‘wp-signup.php’) === false) { … } But it’s … Read more

Close the media-upload thickbox right after upload is finished?

I’m working on a front-end uploader using WP’s own media-uploading functions. All is well, except that I just want to simplify some UI things, like removing tabs and unnecessary information for my users. Most importantly, I’d like to magically close the Upload Thickbox once the uploads are done and the files are crunched. I’m aware … Read more

Custom user profile URLs

I have created a page “profile” that when visited with get variable of user id like: http://example.com/profile/?uid=1 Then it will display the profile details of user id 1. Now I want to rewrite … http://example.com/profile/?uid=1 … to … http://example.com/profile/admin How to accomplish this? 1 Answer 1 Create an endpoint for EP_ROOT named profile. In your … Read more

Upload Image from Front End and Resize

I’m working on adding the possibility to add some custom_post_type from the front end. I can link Images to them, but apparently they are not resized. And I really need the special sizes that I have define on my functions.php. Here is what I do : if(!empty($_FILES[‘IMAGE’])){ include_once ABSPATH . ‘wp-admin/includes/media.php’; include_once ABSPATH . ‘wp-admin/includes/file.php’; … Read more