White Screen of Death – wp-admin

I’d comment on Fayaz’s answer, but I don’t have enough reputation to comment. So here’s my additional advice: Along with checking hidden white space characters in wp-config.php file and elsewhere, I’d recommend you to temporarily disable all plugins and switch to the default WordPress Theme (e.g. Twenty Seventeen Theme). Then check if you still have … Read more

How to remove howdy dropdown menu content

You can use wordpress nodes to customize profile menu. Add this in functions.php add_action( ‘admin_bar_menu’, ‘remove_my_account’, 999 ); function remove_my_account( $wp_admin_bar ) { $wp_admin_bar->remove_node( ‘my-account’ ); } add_action( ‘admin_bar_menu’, ‘add_logout’, 999 ); function add_logout( $wp_admin_bar ) { $args = array( ‘id’ => ‘logout’, // id of the existing child node (New > Post) ‘title’ => … Read more

WP Admin missing icons, numerous JavaScript errors, but only when SCRIPT_DEBUG is false

Do you load own javascripts into the admin? If i recall correctly, if SCRIPT_DEBUG is set to true, the javascripts are not concenated, but loaded seperately. So if a custom javascript doesn’t play well being concenated, this can lead to the whole concenated javascript being corrupt and not being run correctly. Try removing the added … Read more

using wp_sprintf at wordpress option page,

When it comes to user-defined strings, it’s best to use a placeholder or “merge tag” – so on your settings page, inform the user they can use e.g. {blogname} And then in your code: $message = get_option( ‘option_name’ ); $message = str_replace( ‘{blogname}’, get_bloginfo( ‘name’ ) ); This is less error prone & clearer to … Read more

How To Reset Ownership And Permissions of Wp-Content Folder, In Order to Fix HTTP Error When Uploading Images to WordPress Media Library

try increasing WordPress Memory Limit to 256M The most common cause of this error is lack of memory available for WordPress to use. To fix this, you need to increase the amount of memory PHP can use on your server. You can do this by adding the following code to your wp-config.php file. define( ‘WP_MEMORY_LIMIT’, … Read more

How to provide a plugin which requires CMB2 (plugin dependencies)?

On your plugin activation hook method you can check if CMB plugin is installed and/or activated. You can check this using the following methods: is_plugin_active(): only available from within the admin pages function_exists() or class_exists(): available anywhere once they are PHP core methods If CMB is not installed, you can throw an error message in … Read more

Uncheck the box “Send User Notification” by default on new-user.php

There does not seem to be an easy overwrite without replicating the whole user interface. So the quickest solution might be to un-check the checkbox via JavaScript: add_action(‘admin_footer’, ‘uncheck_send_user_notification’); function uncheck_send_user_notification() { $currentScreen = get_current_screen(); if (‘user’ === $currentScreen->id) { echo ‘<script type=”text/javascript”>document.getElementById(“send_user_notification”).checked = false;</script>’; } } The script is only injected on the user-new.php … Read more