Hide upload image fields for the different media upload popups

I’m familiar with attachment_fields_to_edit and don’t recall ever seeing anything on being able to do modification as granular as you’re suggesting. There’s a WP global $screen (or is it $screens) that perhaps might help but I’m not too sure. Have you considered – as hacky as it might sound – doing these things with CSS … Read more

How to decrease the file size upload limit?

The answer to this questions depends on the level of access you have to your server. Shared hosts often limit the options you have. Your options are: 1) Changing a directive in your php.ini: Heres how to find it. This will change the setting for all websites using php on this server. Many shared hosts … Read more

Resize the WP media Uploader iFrame

The default media box has hard coded HTML values so in order to alter the CSS for it you you have 2 options. Enqueue your own CSS and override the values Disable media-views.css completely and load a custom stylesheet. To enqueue your own style: function blah_admin_css() { wp_enqueue_style( ‘blah_admin_css’, path to your custom.css ); } … Read more

Adding wp_enqueue_media(); causes problem

There’s not enough information to really determine what is happening, but the best course of action is to make sure your code is only added to the options page, so it can’t interfere with anything on the edit page. You can use get_current_screen for that, like this: add_action( ‘current_screen’, ‘wpse113256_this_screen’ ); function wpse113256_this_screen() { $current_screen … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)