WordPress plugins not showing after switching servers

I found the issue. The problem was that there were two plugins I was using (A facebook likebox and a twitter plugin) and apparently these plugins are pretty well known to break other plugins on the site if they are installed. I removed those to plugins and then the rest of my plugins all started … Read more

Exclude admin from the top commenters list [duplicate]

Assuming the comment_author is a User ID, try: if(user_can($result->comment_author,’manage_options’)){ $output .= “<li>”.(($result->comment_author_url) ? “<a href=””.$result->comment_author_url.””>” : “”).$result->comment_author.(($result->comment_author_url) ? “</a>” : “”).” (“.$result->comments_count.”)</li>”; } If not, one can use get_comment, and select the comment_ID in the SQL statement. You can then use the object returned to grab the user ID of the comments author, and do … Read more

Is it possible to get rid of admin new updates notifications?

Try this: http://www.vooshthemes.com/blog/wordpress-tip/wordpress-quick-tip-remove-the-dashboard-update-message/ which seems to work good for 2.9- versions //Copied from the above referenced article remove_action(‘wp_version_check’, ‘wp_version_check’); remove_action(‘admin_init’, ‘_maybe_update_core’); add_filter(‘pre_transient_update_core’, create_function( ‘$a’, “return null;”)); For 2.9+ try this: http://www.wpinsite.com/code-snippets/remove-wordpress-dashboard-update-notification-message/ add_action(‘admin_menu’,’foo_hide_update’); function foo_hide_update() { remove_action( ‘admin_notices’, ‘update_nag’, 3 ); }

Removing the advanced menu properties

This is a core function in wp-admin/includes/nav-menu.php. You can either hide the items with CSS or use the myEASYhider plugin here. IIRC, in order to actually override core functions, it must be done from a plugin rather than functions.php, so either way you’ll be using a plugin that could potentially be turned off by the … Read more

Hiding the media-new.php File URL option via jQuery

This is because those elements aren’t present when the page is finished loading, they’re inserted later on using javascript. Try hooking into #media-items and running your code when new elements are inserted rather than when the root element is ready.

What would cause edit buttons for plugins to disappear?

Edit buttons display only when the necessary file permissions are acquired by PHP. http://core.trac.wordpress.org/browser/tags/3.3.1/wp-admin/includes/class-wp-plugins-list-table.php#L380 is_writable(WP_PLUGIN_DIR . “https://wordpress.stackexchange.com/” . $plugin_file) current_user_can(‘edit_plugins’) will always return false if the DISALLOW_FILE_EDIT flag is set to true (recommended) in the configuration, no matter if you’re the administrator or not. http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/capabilities.php#L1118