Hot answers tagged

1

I have the feeling that either those files don't exist or the location of the file has changed. Go into /plugins/wp-greet-box/js/ and see if you can locate the functions.js and the jquery.js. If the files are not there then they must have been deleted and that is why it's throwing the 404 (Not found). EDIT: Also I would remove some Plugins as a lot of ...


1

It turned out to be a problem with the uploads directory (not sure what caused it initially). I was able to resolve the issue with the following filter: function fix_ssl( $url ) { if ( is_ssl() ) { if (stripos($url, 'http://') === 0) { $url = 'https' . substr($url, 4); } } return $url; } function uploadDir($uploads) { ...


1

The other answer is not working for my site. I tried this script instead and it works fine for removing the WordPress version number from the right footer of admin pages: add_filter( 'admin_footer_text', '__return_empty_string', 11 ); add_filter( 'update_footer', '__return_empty_string', 11 );


1

You can actually use the function you're using, you just need to use load-index.php (no need for globals if you don't need them): add_action('load-index.php', function(){ if(get_current_screen()->base == 'dashboard' && !wp_is_mobile()) wp_redirect(admin_url('edit.php')); });


1

Well, as always, after looking for a while and not finding anything, after posting here I found a solution almost immediately here. function custom_menu_order($menu_ord) { if (!$menu_ord) return true; return array( 'index.php', // Dashboard 'separator1', // First separator 'edit.php?post_type=custom-post-slug' // Custom post ...


1

I've just finished a plugin that (amongst other things) allows the reordering of the admin menu. The way the admin menu is constructed is not the easiest thing to work with at all. That being said have a look at the admin_menu hook. You can access the global $menu array at that point - which is an array containing each menu item - each of which is an array ...



Only top voted, non community-wiki answers of a minimum length are eligible