1

I want my users to apply a filter in Photoshop every time they upload an image. Naturally, people are forgetful so I want to remind them of that in the Media Library Screen.

I search around which filter/action I could apply to get access to the content but, unfortunately, could not find anything. Is there any direct way to access the "Drop Files" text?

Thank you!

enter image description here

enter image description here

1 Answer 1

2

Here are two examples using the pre-upload-ui and post-upload-ui hooks:

add_action( 'pre-upload-ui', function() {  
    ?><h4>
         <?php esc_html_e( 'Please Remember This And That! (pre-upload-ui)', 'wpse' );?>
      </h4>
    <?php 
});

add_action( 'post-upload-ui', function() {  
    ?><h4>
         <?php esc_html_e( 'Please Remember This And That! (post-upload-ui)', 'wpse' );?>
      </h4>
    <?php 
});

You might want to adjust this further to follow the Admin UI style.

This will show up as:

Media library upload

and

Upload new media

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.