Skip to main content
added 304 characters in body
Source Link
birgire
  • 67.8k
  • 7
  • 119
  • 251

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

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

add_action( 'post-upload-ui', function() {  
    ?><h4><><h4>
         <?php _eesc_html_e( 'Please Remember This And That! (post-upload-ui)', 'wpse' );?><>
      </h4><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

Here are two filter examples:

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

add_action( 'post-upload-ui', function() { 
    ?><h4><?php _e( 'Please Remember This And That! (post-upload-ui)' );?></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

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

added 168 characters in body
Source Link
birgire
  • 67.8k
  • 7
  • 119
  • 251

Here are two filter examples:

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

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

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

This will show up as:

NoticesMedia library upload

and

Upload new media

Here are two filter examples:

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

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

This will show up as:

Notices

Here are two filter examples:

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

add_action( 'post-upload-ui', function() { 
    ?><h4><?php _e( 'Please Remember This And That! (post-upload-ui)' );?></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

added 45 characters in body
Source Link
birgire
  • 67.8k
  • 7
  • 119
  • 251

Here are two filter examples:

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

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

This will show up as:

Notices

Here are two filter examples:

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

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

Notices

Here are two filter examples:

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

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

This will show up as:

Notices

Source Link
birgire
  • 67.8k
  • 7
  • 119
  • 251
Loading