Skip to content

Instantly share code, notes, and snippets.

@cliffordp
Created May 3, 2014 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cliffordp/11497865 to your computer and use it in GitHub Desktop.
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)
<?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