Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
/**
* Change the 'Drop files here to upload' message
*/
function tester_pewc_filter_drop_files_message( $message, $post_id ) {
return 'Your message';
}
add_filter( 'pewc_filter_drop_files_message', 'tester_pewc_filter_drop_files_message', 10, 2 );
/**
* Change the 'Max file size' message
*/
function tester_pewc_filter_max_file_size_message( $message ) {
return 'Your message';
}
add_filter( 'pewc_filter_max_file_size_message', 'tester_pewc_filter_max_file_size_message', 10 );
/**
* Change the 'Permitted file types' message
*/
function tester_pewc_filter_permitted_file_types_message( $message ) {
return 'Your message';
}
add_filter( 'pewc_filter_permitted_file_types_message', 'tester_pewc_filter_permitted_file_types_message', 10 );
/**
* Change the 'Uploaded' message
*/
function tester_pewc_filter_upload_success_message( $message ) {
return 'Your message';
}
add_filter( 'pewc_filter_upload_success_message', 'tester_pewc_filter_upload_success_message', 10 );
/**
* Change the 'Failed' message
*/
function tester_pewc_filter_upload_failed_message( $message ) {
return 'Your message';
}
add_filter( 'pewc_filter_upload_failed_message', 'tester_pewc_filter_upload_failed_message', 10 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.