Hot answers tagged

1

You should also check if that dir exists and loop through the list_files if they exist. Since you asked for another idea to get those files: You can use the php function glob. It finds pathnames matching a pattern. You can find the Glob PHP manual here. $current_user = wp_get_current_user(); $upload_dir = wp_upload_dir(); $user_dirname = $upload_dir['...


1

You should got a class for that button Try to find it and, if exists, you can fire event i.e using jQuery: jQuery(".button-class").click(...);


Only top voted, non community-wiki answers of a minimum length are eligible