Created
May 3, 2014 13:24
-
-
Save cliffordp/11497865 to your computer and use it in GitHub Desktop.
Replace 'PageLines-' prefix for DMS Editor media uploads (from editor/editor.actions.php)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//from http://www.pagelinestheme.com/remove-customize-dms-editors-media-uploads-prefix/ | |
//replace 'PageLines-' prefix for DMS Editor media uploads (from editor/editor.actions.php) | |
add_filter( 'pl_up_image_prefix', 'my_pl_upload_prefix'); | |
function my_pl_upload_prefix(){ | |
return ''; //example result: 'filename.png' | |
//return 'My Keyword - '; //example result: 'My Keyword - filename.jpg' | |
//return get_bloginfo('name','raw') . ' - '; //example result: 'Site Name - filename.gif' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment