You know how media uploaded via the DMS Editor prefixes the filename with ‘PageLines-‘?
Modify this code and add it to your child theme’s functions.php file to change the prefix to one you want:
Remove the opening PHP tag, which is added only so the gist has highlighting.
You could return:
- An empty string so it uploads just like it would via wp-admin
- Customized text
- Your site’s name, description, etc. via the get_bloginfo function
- Or anything else you want