Skip to main content
Tweeted twitter.com/#!/StackWordPress/status/336390946759520256
deleted 16 characters in body; edited tags
Source Link
brasofilo
  • 22.1k
  • 8
  • 69
  • 264

I'm wondering if there's a way to show a specific message when user uploads a file using the wp-admin/media-new.phpwp-admin/media-new.php script.

Thanks!

EDIT: SoSo far I have this:

function my_uploads_notice(){
    global $pagenow;
    if ( $pagenow == 'media-new.php' ) {
         echo '<div class="error">
             <p><h4>MY NOTICE</h4></p>
         </div>';
    }
}
add_action('admin_notices', 'my_uploads_notice');

I'm wondering if there's a way to show a specific message when user uploads a file using the wp-admin/media-new.php script.

Thanks!

EDIT: So far I have this:

function my_uploads_notice(){
    global $pagenow;
    if ( $pagenow == 'media-new.php' ) {
         echo '<div class="error">
             <p><h4>MY NOTICE</h4></p>
         </div>';
    }
}
add_action('admin_notices', 'my_uploads_notice');

I'm wondering if there's a way to show a specific message when user uploads a file using the wp-admin/media-new.php script.

So far I have this:

function my_uploads_notice(){
    global $pagenow;
    if ( $pagenow == 'media-new.php' ) {
         echo '<div class="error">
             <p><h4>MY NOTICE</h4></p>
         </div>';
    }
}
add_action('admin_notices', 'my_uploads_notice');
Added code
Source Link
pangi
  • 111
  • 2

I'm wondering if there's a way to show a specific message when user uploads a file using the wp-admin/media-new.php script.

Thanks!

EDIT: So far I have this:

function my_uploads_notice(){
    global $pagenow;
    if ( $pagenow == 'media-new.php' ) {
         echo '<div class="error">
             <p><h4>MY NOTICE</h4></p>
         </div>';
    }
}
add_action('admin_notices', 'my_uploads_notice');

I'm wondering if there's a way to show a specific message when user uploads a file using the wp-admin/media-new.php script.

Thanks!

I'm wondering if there's a way to show a specific message when user uploads a file using the wp-admin/media-new.php script.

Thanks!

EDIT: So far I have this:

function my_uploads_notice(){
    global $pagenow;
    if ( $pagenow == 'media-new.php' ) {
         echo '<div class="error">
             <p><h4>MY NOTICE</h4></p>
         </div>';
    }
}
add_action('admin_notices', 'my_uploads_notice');
edited tags
Link
pangi
  • 111
  • 2
Source Link
pangi
  • 111
  • 2
Loading