Prevent users in the backend from seeing WP/Plugin notifications and update annoucements?

Add this to your functions.php. if ( !current_user_can( ‘edit_users’ ) ) { //Change the edit_user” to whatever capability you need to retain the notifications add_action( ‘init’, create_function( ‘$a’, “remove_action( ‘init’, ‘wp_version_check’ );” ), 2 ); add_filter( ‘pre_option_update_core’, create_function( ‘$a’, “return null;” ) ); } Or if you want to show the notification to a specific … Read more

Auto-Update Fails

wp-content should be 755, otherwise WordPress will think it has global write access, and won’t fallback to the FTP filesystem method if it doesn’t. Might be worth checking if PHP is running in safe mode – this can also be the troublemaker (though I’m aware WordPress can still upgrade with it on).

How to add only a (sub) capacity to an user role?

It’s stupid, but you can’t. (Not without editing core, anyway.) Right at the top of the nav-menus.php source code is an edit_theme_options check that’s not filterable. http://core.trac.wordpress.org/browser/tags/3.4.1/wp-admin/nav-menus.php If you’re not concerned about your editors trying anything too shady, you could simply hide the menu items using a plugin like Adminimize or Admin Menu Editor. Of … Read more

How to upload prc file type?

This article explains a method in which you can add a file type to the list of allowed file types. Copy and paste the following code into your functions.php: add_filter(‘upload_mimes’, ‘custom_upload_mimes’); function custom_upload_mimes ( $existing_mimes=array() ) { // add your extension to the array $existing_mimes[‘prc’] = ‘application/x-mobipocket-ebook’; // add as many as you like // … Read more

Edit draft from other author

Please review the information here: http://codex.wordpress.org/Roles_and_Capabilities Specifically, the following: Editor – somebody who can publish and manage posts including the posts of other users. An Editor is exactly that – someone who can edit what other people are doing. Ensure that the Users who you want to have Editor rights are assigned as Editors in … Read more

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